diff options
author | Jim Meyering <jim@meyering.net> | 1995-10-29 20:20:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-10-29 20:20:08 +0000 |
commit | a2535fc95f785afc0727096e4a2fbf3e788fdcd2 (patch) | |
tree | a57699eaf7cf83217dd01a8e8efe61eaca0feedd /src | |
parent | d2aaf842b4133088b842012c2637822f44f6a527 (diff) | |
download | coreutils-a2535fc95f785afc0727096e4a2fbf3e788fdcd2.tar.xz |
Protoize.
Diffstat (limited to 'src')
-rw-r--r-- | src/sum.c | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -54,8 +54,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"), @@ -87,9 +86,7 @@ With no FILE, or when FILE is -, read standard input.\n\ Return 0 if successful, -1 if an error occurs. */ static int -bsd_sum_file (file, print_name) - char *file; - int print_name; +bsd_sum_file (char *file, int print_name) { register FILE *fp; register unsigned long checksum = 0; /* The checksum mod 2^16. */ @@ -149,9 +146,7 @@ bsd_sum_file (file, print_name) Return 0 if successful, -1 if an error occurs. */ static int -sysv_sum_file (file, print_name) - char *file; - int print_name; +sysv_sum_file (char *file, int print_name) { int fd; unsigned char buf[8192]; @@ -206,9 +201,7 @@ sysv_sum_file (file, print_name) } void -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { int errors = 0; int optc; |