summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cat.c2
-rw-r--r--src/cksum.c4
-rw-r--r--src/comm.c2
-rw-r--r--src/csplit.c2
-rw-r--r--src/cut.c2
-rw-r--r--src/expand.c2
-rw-r--r--src/fold.c2
-rw-r--r--src/head.c2
-rw-r--r--src/join.c2
-rw-r--r--src/nl.c2
-rw-r--r--src/paste.c2
-rw-r--r--src/pr.c2
-rw-r--r--src/split.c2
-rw-r--r--src/sum.c2
-rw-r--r--src/tac.c2
-rw-r--r--src/tail.c2
-rw-r--r--src/tr.c2
-rw-r--r--src/unexpand.c2
-rw-r--r--src/uniq.c2
-rw-r--r--src/wc.c2
20 files changed, 21 insertions, 21 deletions
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;