diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-07-28 15:28:38 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-07-28 15:28:38 +0000 |
commit | bf25e6dcaf482f96626ebeb71a20cab99a722807 (patch) | |
tree | 258b7edbf5bfe3d6f60b433e4ae643806dcbc202 /usr.bin/comm | |
parent | 0e9dee55c6882e7c68e04a4c8a7ac06da370157c (diff) | |
download | FreeBSD-src-bf25e6dcaf482f96626ebeb71a20cab99a722807.zip FreeBSD-src-bf25e6dcaf482f96626ebeb71a20cab99a722807.tar.gz |
ANSIify function definitions to avoid a warning.
Minor constness changes.
Diffstat (limited to 'usr.bin/comm')
-rw-r--r-- | usr.bin/comm/comm.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/usr.bin/comm/comm.c b/usr.bin/comm/comm.c index a063cfd..86f1fa8 100644 --- a/usr.bin/comm/comm.c +++ b/usr.bin/comm/comm.c @@ -62,15 +62,13 @@ __FBSDID("$FreeBSD$"); const char *tabs[] = { "", "\t", "\t\t" }; -FILE *file(char *); +FILE *file(const char *); void show(FILE *, const char *, char *); -int stricoll(char *, char *); +int stricoll(const char *, const char *); static void usage(void); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int comp, file1done = 0, file2done = 0, read1, read2; int ch, flag1, flag2, flag3, iflag; @@ -170,10 +168,7 @@ main(argc, argv) } void -show(fp, offset, buf) - FILE *fp; - const char *offset; - char *buf; +show(FILE *fp, const char *offset, char *buf) { do { @@ -182,8 +177,7 @@ show(fp, offset, buf) } FILE * -file(name) - char *name; +file(const char *name) { FILE *fp; @@ -196,15 +190,14 @@ file(name) } static void -usage() +usage(void) { (void)fprintf(stderr, "usage: comm [-123i] file1 file2\n"); exit(1); } int -stricoll(s1, s2) - char *s1, *s2; +stricoll(const char *s1, const char *s2) { char *p, line1[MAXLINELEN], line2[MAXLINELEN]; |