summaryrefslogtreecommitdiffstats
path: root/source/lib/util_file.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-10 12:46:42 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-10 12:46:42 +0000
commitfe6679dffba9a92bb35933ad52172c9be0e9ef90 (patch)
treebb25fa92a795154602ae6b12c025123909afb514 /source/lib/util_file.c
parentf41c3bb80f1e498a9d27f6e236b0ff3a742764c9 (diff)
downloadsamba-fe6679dffba9a92bb35933ad52172c9be0e9ef90.tar.gz
samba-fe6679dffba9a92bb35933ad52172c9be0e9ef90.tar.xz
samba-fe6679dffba9a92bb35933ad52172c9be0e9ef90.zip
convert more code to use XFILE
Diffstat (limited to 'source/lib/util_file.c')
-rw-r--r--source/lib/util_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/util_file.c b/source/lib/util_file.c
index d80c09666b5..8eeb3475e38 100644
--- a/source/lib/util_file.c
+++ b/source/lib/util_file.c
@@ -272,14 +272,14 @@ read a line from a file with possible \ continuation chars.
Blanks at the start or end of a line are stripped.
The string will be allocated if s2 is NULL
****************************************************************************/
-char *fgets_slash(char *s2,int maxlen,FILE *f)
+char *fgets_slash(char *s2,int maxlen,XFILE *f)
{
char *s=s2;
int len = 0;
int c;
BOOL start_of_line = True;
- if (feof(f))
+ if (x_feof(f))
return(NULL);
if (maxlen <2) return(NULL);
@@ -296,7 +296,7 @@ char *fgets_slash(char *s2,int maxlen,FILE *f)
while (len < maxlen-1)
{
- c = getc(f);
+ c = x_getc(f);
switch (c)
{
case '\r':