From 823ab23f390c9d3c76e0f6e3bc4a7ba03c1632f4 Mon Sep 17 00:00:00 2001 From: David Malone Date: Sun, 28 Jul 2002 15:25:15 +0000 Subject: [PATCH] ANSify function definitions to avoid a warning. --- usr.bin/column/column.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index 16a067cd9da..31f316f4d05 100644 --- a/usr.bin/column/column.c +++ b/usr.bin/column/column.c @@ -75,9 +75,7 @@ char **list; /* array of pointers to records */ const char *separator = "\t "; /* field separator for table option */ int -main(argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { struct winsize win; FILE *fp; @@ -139,7 +137,7 @@ main(argc, argv) } void -c_columnate() +c_columnate(void) { int chcnt, col, cnt, endcol, numcols; char **lp; @@ -167,7 +165,7 @@ c_columnate() } void -r_columnate() +r_columnate(void) { int base, chcnt, cnt, col, endcol, numcols, numrows, row; @@ -193,7 +191,7 @@ r_columnate() } void -print() +print(void) { int cnt; char **lp; @@ -209,7 +207,7 @@ typedef struct _tbl { #define DEFCOLS 25 void -maketbl() +maketbl(void) { TBL *t; int coloff, cnt; @@ -260,8 +258,7 @@ maketbl() #define MAXLINELEN (LINE_MAX + 1) void -input(fp) - FILE *fp; +input(FILE *fp) { static int maxentry; int len; @@ -295,7 +292,7 @@ input(fp) } void -usage() +usage(void) { (void)fprintf(stderr,