]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Protoize.
authorJim Meyering <jim@meyering.net>
Mon, 30 Oct 1995 21:01:35 +0000 (21:01 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 30 Oct 1995 21:01:35 +0000 (21:01 +0000)
src/uniq.c
src/wc.c

index 5cb8c59b7dc7b8e667a1869e2aed50d29d757eb8..86b3d0447667c715e82478eccfe92c1ab5309300 100644 (file)
@@ -86,8 +86,7 @@ static struct option const longopts[] =
 };
 
 static void
-usage (status)
-     int status;
+usage (int status)
 {
   if (status != 0)
     fprintf (stderr, _("Try `%s --help' for more information.\n"),
@@ -124,8 +123,7 @@ Fields are skipped before chars. \n\
    return a pointer to the beginning of the line's field to be compared. */
 
 static char *
-find_field (line)
-     struct linebuffer *line;
+find_field (struct linebuffer *line)
 {
   register int count;
   register char *lp = line->buffer;
@@ -152,11 +150,7 @@ find_field (line)
    OLDLEN and NEWLEN are their lengths. */
 
 static int
-different (old, new, oldlen, newlen)
-     char *old;
-     char *new;
-     int oldlen;
-     int newlen;
+different (char *old, char *new, int oldlen, int newlen)
 {
   register int order;
 
@@ -179,10 +173,7 @@ different (old, new, oldlen, newlen)
    LINECOUNT + 1 is the number of times that the line occurred. */
 
 static void
-writeline (line, stream, linecount)
-     struct linebuffer *line;
-     FILE *stream;
-     int linecount;
+writeline (struct linebuffer *line, FILE *stream, int linecount)
 {
   if ((mode == output_unique && linecount != 0)
       || (mode == output_repeated && linecount == 0))
@@ -199,8 +190,7 @@ writeline (line, stream, linecount)
    If either is "-", use the standard I/O stream for it instead. */
 
 static void
-check_file (infile, outfile)
-     char *infile, *outfile;
+check_file (char *infile, char *outfile)
 {
   FILE *istream;
   FILE *ostream;
@@ -270,9 +260,7 @@ check_file (infile, outfile)
 }
 
 void
-main (argc, argv)
-     int argc;
-     char *argv[];
+main (int argc, char **argv)
 {
   int optc;
   char *infile = "-", *outfile = "-";
index 40b6c2e3d64adf59c9e016b194f5053f0483e72f..cfa28bbbee0ce84c2bfad08edf2e6470023fac1d 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -65,8 +65,7 @@ static struct option const longopts[] =
 };
 
 static void
-usage (status)
-     int status;
+usage (int status)
 {
   if (status != 0)
     fprintf (stderr, _("Try `%s --help' for more information.\n"),
@@ -92,9 +91,7 @@ read standard input.\n\
 }
 
 static void
-write_counts (lines, words, chars, file)
-     unsigned long lines, words, chars;
-     char *file;
+write_counts (long unsigned int lines, long unsigned int words, long unsigned int chars, char *file)
 {
   if (print_lines)
     printf ("%7lu", lines);
@@ -116,9 +113,7 @@ write_counts (lines, words, chars, file)
 }
 
 static void
-wc (fd, file)
-     int fd;
-     char *file;
+wc (int fd, char *file)
 {
   char buf[BUFFER_SIZE + 1];
   register int bytes_read;
@@ -233,8 +228,7 @@ wc (fd, file)
 }
 
 static void
-wc_file (file)
-     char *file;
+wc_file (char *file)
 {
   if (!strcmp (file, "-"))
     {
@@ -260,9 +254,7 @@ wc_file (file)
 }
 
 void
-main (argc, argv)
-     int argc;
-     char **argv;
+main (int argc, char **argv)
 {
   int optc;
   int nfiles;