summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-07-17 13:03:38 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-07-17 13:03:38 -0700
commitb7aafba248db5e9c3ba39e4819d0b9ae156d2c82 (patch)
tree34f066ced897639b2b9d781dadd41b8fac03f4ff
parente1cb231b31be520b76aeb72acc1af9ff6682fa9d (diff)
sparse warning: non-ANSI definition of function 'process_file' & 'process_line'
-rw-r--r--pf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pf.c b/pf.c
index 99c20f7..3862a7c 100644
--- a/pf.c
+++ b/pf.c
@@ -37,8 +37,7 @@ from The Open Group.
char *inputFilename = NOTINFILEFILENAME;
int lineno = 0;
-void process_file (filename)
- char *filename; /* NULL means use stdin */
+void process_file (char *filename) /* NULL means use stdin */
{
FILE *fp;
char buffer[BUFSIZ];
@@ -80,8 +79,7 @@ void process_file (filename)
}
-void process_line (buffer)
- char *buffer;
+void process_line (char *buffer)
{
int len;
int i;