diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-21 22:41:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-21 22:41:04 +0000 |
commit | adb7c216b2f18c8b24881ff66cb916e37bc9ea41 (patch) | |
tree | be44dc8f3c2d5dd9f8616864b990d784f17c021d /src | |
parent | 92d78458e06f471854fd448dce0fb0e1bfc14173 (diff) | |
download | coreutils-adb7c216b2f18c8b24881ff66cb916e37bc9ea41.tar.xz |
(main): Declare to be of type int, not void.
Diffstat (limited to 'src')
-rw-r--r-- | src/cat.c | 2 | ||||
-rw-r--r-- | src/cksum.c | 4 | ||||
-rw-r--r-- | src/comm.c | 2 | ||||
-rw-r--r-- | src/csplit.c | 2 | ||||
-rw-r--r-- | src/cut.c | 2 | ||||
-rw-r--r-- | src/expand.c | 2 | ||||
-rw-r--r-- | src/fold.c | 2 | ||||
-rw-r--r-- | src/head.c | 2 | ||||
-rw-r--r-- | src/join.c | 2 | ||||
-rw-r--r-- | src/nl.c | 2 | ||||
-rw-r--r-- | src/paste.c | 2 | ||||
-rw-r--r-- | src/pr.c | 2 | ||||
-rw-r--r-- | src/split.c | 2 | ||||
-rw-r--r-- | src/sum.c | 2 | ||||
-rw-r--r-- | src/tac.c | 2 | ||||
-rw-r--r-- | src/tail.c | 2 | ||||
-rw-r--r-- | src/tr.c | 2 | ||||
-rw-r--r-- | src/unexpand.c | 2 | ||||
-rw-r--r-- | src/uniq.c | 2 | ||||
-rw-r--r-- | src/wc.c | 2 |
20 files changed, 21 insertions, 21 deletions
@@ -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; @@ -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]; @@ -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; @@ -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; @@ -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; @@ -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; @@ -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; @@ -253,7 +253,7 @@ wc_file (const char *file) } } -void +int main (int argc, char **argv) { int optc; |