ANSify function definitions to avoid a warning.

This commit is contained in:
David Malone 2002-07-28 15:25:15 +00:00
parent 6ed42fb9d2
commit 823ab23f39

View File

@ -75,9 +75,7 @@ char **list; /* array of pointers to records */
const char *separator = "\t "; /* field separator for table option */ const char *separator = "\t "; /* field separator for table option */
int int
main(argc, argv) main(int argc, char **argv)
int argc;
char **argv;
{ {
struct winsize win; struct winsize win;
FILE *fp; FILE *fp;
@ -139,7 +137,7 @@ main(argc, argv)
} }
void void
c_columnate() c_columnate(void)
{ {
int chcnt, col, cnt, endcol, numcols; int chcnt, col, cnt, endcol, numcols;
char **lp; char **lp;
@ -167,7 +165,7 @@ c_columnate()
} }
void void
r_columnate() r_columnate(void)
{ {
int base, chcnt, cnt, col, endcol, numcols, numrows, row; int base, chcnt, cnt, col, endcol, numcols, numrows, row;
@ -193,7 +191,7 @@ r_columnate()
} }
void void
print() print(void)
{ {
int cnt; int cnt;
char **lp; char **lp;
@ -209,7 +207,7 @@ typedef struct _tbl {
#define DEFCOLS 25 #define DEFCOLS 25
void void
maketbl() maketbl(void)
{ {
TBL *t; TBL *t;
int coloff, cnt; int coloff, cnt;
@ -260,8 +258,7 @@ maketbl()
#define MAXLINELEN (LINE_MAX + 1) #define MAXLINELEN (LINE_MAX + 1)
void void
input(fp) input(FILE *fp)
FILE *fp;
{ {
static int maxentry; static int maxentry;
int len; int len;
@ -295,7 +292,7 @@ input(fp)
} }
void void
usage() usage(void)
{ {
(void)fprintf(stderr, (void)fprintf(stderr,