ANSify function definitions to avoid a warning.

This commit is contained in:
dwmalone 2002-07-28 15:25:15 +00:00
parent 3f5f42dd5a
commit 0e9dee55c6

View File

@ -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,