1
0
mirror of https://github.com/apache/httpd.git synced 2025-09-02 13:21:21 +03:00

Eliminate use of FILE * & ap_get_os_file() in mod_asis by APRizing

ap_scan_script_header_err().


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brian Havard
1999-10-31 09:26:03 +00:00
parent 570a2b8bb4
commit d25def5363
3 changed files with 4 additions and 11 deletions

View File

@@ -605,10 +605,10 @@ API_EXPORT(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
static int getsfunc_FILE(char *buf, int len, void *f)
{
return fgets(buf, len, (FILE *) f) != NULL;
return ap_fgets(buf, len, (ap_file_t *) f) == APR_SUCCESS;
}
API_EXPORT(int) ap_scan_script_header_err(request_rec *r, FILE *f,
API_EXPORT(int) ap_scan_script_header_err(request_rec *r, ap_file_t *f,
char *buffer)
{
return ap_scan_script_header_err_core(r, buffer, getsfunc_FILE, f);