From adb7c216b2f18c8b24881ff66cb916e37bc9ea41 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 21 Mar 1996 22:41:04 +0000 Subject: (main): Declare to be of type int, not void. --- src/cat.c | 2 +- src/cksum.c | 4 ++-- src/comm.c | 2 +- src/csplit.c | 2 +- src/cut.c | 2 +- src/expand.c | 2 +- src/fold.c | 2 +- src/head.c | 2 +- src/join.c | 2 +- src/nl.c | 2 +- src/paste.c | 2 +- src/pr.c | 2 +- src/split.c | 2 +- src/sum.c | 2 +- src/tac.c | 2 +- src/tail.c | 2 +- src/tr.c | 2 +- src/unexpand.c | 2 +- src/uniq.c | 2 +- src/wc.c | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) (limited to 'src') diff --git a/src/cat.c b/src/cat.c index 390abc4f9..e141e4d68 100644 --- a/src/cat.c +++ b/src/cat.c @@ -438,7 +438,7 @@ cat ( } } -void +int main (int argc, char **argv) { /* Optimal size of i/o operations of output. */ diff --git a/src/cksum.c b/src/cksum.c index d5b29ef96..51625972f 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -85,7 +85,7 @@ remainder (m) return rem & 0xFFFFFFFF; /* Make it run on 64-bit machine. */ } -void +int main () { int i; @@ -279,7 +279,7 @@ Print CRC checksum and byte counts of each FILE.\n\ exit (status); } -void +int main (int argc, char **argv) { int i, c; diff --git a/src/comm.c b/src/comm.c index a1b1f4622..0aaa532a0 100644 --- a/src/comm.c +++ b/src/comm.c @@ -211,7 +211,7 @@ compare_files (char **infiles) return ret; } -void +int main (int argc, char **argv) { int c; diff --git a/src/csplit.c b/src/csplit.c index 5045c7cb8..8ff468b6f 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1396,7 +1396,7 @@ max_out (char *format) return out_count; } -void +int main (int argc, char **argv) { int optc; diff --git a/src/cut.c b/src/cut.c index a6ecdab39..63490cee8 100644 --- a/src/cut.c +++ b/src/cut.c @@ -669,7 +669,7 @@ cut_file (char *file) return 0; } -void +int main (int argc, char **argv) { int optc, exit_status = 0; diff --git a/src/expand.c b/src/expand.c index d77d1c8fa..702d2034c 100644 --- a/src/expand.c +++ b/src/expand.c @@ -321,7 +321,7 @@ expand (void) } } -void +int main (int argc, char **argv) { int tabval = -1; /* Value of tabstop being read, or -1. */ diff --git a/src/fold.c b/src/fold.c index 747f78684..5069267f3 100644 --- a/src/fold.c +++ b/src/fold.c @@ -245,7 +245,7 @@ fold_file (char *filename, int width) return 0; } -void +int main (int argc, char **argv) { int width = 80; diff --git a/src/head.c b/src/head.c index 244d9a813..bac32c6d1 100644 --- a/src/head.c +++ b/src/head.c @@ -248,7 +248,7 @@ head_file (const char *filename, long int number) } } -void +int main (int argc, char **argv) { enum header_mode header_mode = multiple_files; diff --git a/src/join.c b/src/join.c index 360684a65..8c973ae62 100644 --- a/src/join.c +++ b/src/join.c @@ -765,7 +765,7 @@ make_blank (struct line *blank, int count) blank->lim = &blank->beg[i]; } -void +int main (int argc, char **argv) { char *names[2]; diff --git a/src/nl.c b/src/nl.c index 0450bda6a..b4e277bc8 100644 --- a/src/nl.c +++ b/src/nl.c @@ -459,7 +459,7 @@ nl_file (const char *file) return 0; } -void +int main (int argc, char **argv) { int c, exit_status = 0; diff --git a/src/paste.c b/src/paste.c index 7ac478731..beaf62b95 100644 --- a/src/paste.c +++ b/src/paste.c @@ -429,7 +429,7 @@ With no FILE, or when FILE is -, read standard input.\n\ exit (status); } -void +int main (int argc, char **argv) { int optc, exit_status; diff --git a/src/pr.c b/src/pr.c index 954876e7a..fb6b7c8a2 100644 --- a/src/pr.c +++ b/src/pr.c @@ -457,7 +457,7 @@ cols_ready_to_print (void) return n; } -void +int main (int argc, char **argv) { int c; diff --git a/src/split.c b/src/split.c index fb6ec4e50..ec2e3e1cf 100644 --- a/src/split.c +++ b/src/split.c @@ -352,7 +352,7 @@ line_bytes_split (int nchars) free (buf); } -void +int main (int argc, char **argv) { struct stat stat_buf; diff --git a/src/sum.c b/src/sum.c index bf04e6233..7995d6590 100644 --- a/src/sum.c +++ b/src/sum.c @@ -197,7 +197,7 @@ sysv_sum_file (const char *file, int print_name) return 0; } -void +int main (int argc, char **argv) { int errors = 0; diff --git a/src/tac.c b/src/tac.c index 88c688a74..726d5ef7e 100644 --- a/src/tac.c +++ b/src/tac.c @@ -579,7 +579,7 @@ tac_stdin (void) return errors; } -void +int main (int argc, char **argv) { const char *error_message; /* Return value from re_compile_pattern. */ diff --git a/src/tail.c b/src/tail.c index 5ec27fce3..998970561 100644 --- a/src/tail.c +++ b/src/tail.c @@ -836,7 +836,7 @@ tail_file (const char *filename, off_t n_units, int filenum) return errors; } -void +int main (int argc, char **argv) { enum header_mode header_mode = multiple_files; diff --git a/src/tr.c b/src/tr.c index d00860777..e76357020 100644 --- a/src/tr.c +++ b/src/tr.c @@ -1785,7 +1785,7 @@ set_initialize (struct Spec_list *s, int complement_this_set, SET_TYPE *in_set) in_set[i] = (!in_set[i]); } -void +int main (int argc, char **argv) { int c; diff --git a/src/unexpand.c b/src/unexpand.c index dddd57761..fe50d324e 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -376,7 +376,7 @@ Instead of -t NUMBER or -t LIST, -NUMBER or -LIST may be used.\n\ exit (status); } -void +int main (int argc, char **argv) { int tabval = -1; /* Value of tabstop being read, or -1. */ diff --git a/src/uniq.c b/src/uniq.c index 2ba1aa403..90265e410 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -272,7 +272,7 @@ check_file (const char *infile, const char *outfile) free (lb2.buffer); } -void +int main (int argc, char **argv) { int optc; diff --git a/src/wc.c b/src/wc.c index 10875887a..5338b0e97 100644 --- a/src/wc.c +++ b/src/wc.c @@ -253,7 +253,7 @@ wc_file (const char *file) } } -void +int main (int argc, char **argv) { int optc; -- cgit v1.2.3-70-g09d2