summaryrefslogtreecommitdiff
path: root/src/builtins/file.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-06-07 14:20:27 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-06-07 14:20:27 -0400
commit9739e750a7ca4b86ddb89674b104e9b9a8b61014 (patch)
treee068b1a4bbf8abc57ceb87a6a243ac9977187cbc /src/builtins/file.c
parent87db45f5eb7880395735f7bf3a8ee2d89b7e0122 (diff)
Warning cleanup.
Diffstat (limited to 'src/builtins/file.c')
-rw-r--r--src/builtins/file.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/builtins/file.c b/src/builtins/file.c
index 1f73134..863ecee 100644
--- a/src/builtins/file.c
+++ b/src/builtins/file.c
@@ -35,8 +35,7 @@ typedef struct _BuiltinIO {
} BuiltinIORec, *BuiltinIOPtr;
static int
-BuiltinFill (f)
- BufFilePtr f;
+BuiltinFill (BufFilePtr f)
{
int left, len;
BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
@@ -58,15 +57,12 @@ BuiltinFill (f)
}
static int
-BuiltinSkip (f, count)
- BufFilePtr f;
- int count;
+BuiltinSkip (BufFilePtr f, int count)
{
BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
int curoff;
int fileoff;
int todo;
- int left;
curoff = f->bufp - f->buffer;
fileoff = curoff + f->left;
@@ -86,8 +82,7 @@ BuiltinSkip (f, count)
}
static int
-BuiltinClose (f, doClose)
- BufFilePtr f;
+BuiltinClose (BufFilePtr f, int unused)
{
BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
@@ -97,8 +92,7 @@ BuiltinClose (f, doClose)
FontFilePtr
-BuiltinFileOpen (name)
- char *name;
+BuiltinFileOpen (char *name)
{
int i;
BuiltinIOPtr io;
@@ -121,7 +115,7 @@ BuiltinFileOpen (name)
xfree (io);
return NULL;
}
- if (cooked = BufFilePushZIP (raw))
+ if ((cooked = BufFilePushZIP (raw)))
raw = cooked;
else
{
@@ -132,8 +126,7 @@ BuiltinFileOpen (name)
}
int
-BuiltinFileClose (f)
- FontFilePtr f;
+BuiltinFileClose (FontFilePtr f, int unused)
{
return BufFileClose ((BufFilePtr) f, TRUE);
}