diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index 16a067cd9dae..31f316f4d059 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,