diff options
author | Jim Meyering <jim@meyering.net> | 1995-10-17 13:49:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-10-17 13:49:32 +0000 |
commit | 9242af95a3b2f0e2cb3c76344a90c01a3e5750fd (patch) | |
tree | bbf84cc5d290231b037730737b3668b94ace97b6 | |
parent | 9583179c1b65c8db01058367191cfb961b8c7611 (diff) | |
download | coreutils-9242af95a3b2f0e2cb3c76344a90c01a3e5750fd.tar.xz |
Protoize.
-rw-r--r-- | src/head.c | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/src/head.c b/src/head.c index 5aca31f1d..117b28820 100644 --- a/src/head.c +++ b/src/head.c @@ -79,8 +79,7 @@ static struct option const long_options[] = }; static void -usage (status) - int status; +usage (int status) { if (status != 0) fprintf (stderr, _("Try `%s --help' for more information.\n"), @@ -115,8 +114,7 @@ multipliers bkm follows concatenated, else read -n VALUE.\n\ Return -1 if STR does not represent a valid unsigned integer. */ static long -atou (str) - char *str; +atou (char *str) { int value; @@ -126,8 +124,7 @@ atou (str) } static void -parse_unit (str) - char *str; +parse_unit (char *str) { int arglen = strlen (str); @@ -152,8 +149,7 @@ parse_unit (str) } static void -write_header (filename) - char *filename; +write_header (char *filename) { static int first_file = 1; @@ -162,10 +158,7 @@ write_header (filename) } static int -head_bytes (filename, fd, bytes_to_write) - char *filename; - int fd; - long bytes_to_write; +head_bytes (char *filename, int fd, long int bytes_to_write) { char buffer[BUFSIZE]; int bytes_read; @@ -190,10 +183,7 @@ head_bytes (filename, fd, bytes_to_write) } static int -head_lines (filename, fd, lines_to_write) - char *filename; - int fd; - long lines_to_write; +head_lines (char *filename, int fd, long int lines_to_write) { char buffer[BUFSIZE]; int bytes_read; @@ -220,10 +210,7 @@ head_lines (filename, fd, lines_to_write) } static int -head (filename, fd, number) - char *filename; - int fd; - long number; +head (char *filename, int fd, long int number) { if (unit_size) return head_bytes (filename, fd, number); @@ -232,9 +219,7 @@ head (filename, fd, number) } static int -head_file (filename, number) - char *filename; - long number; +head_file (char *filename, long int number) { int fd; @@ -265,9 +250,7 @@ head_file (filename, number) } void -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { enum header_mode header_mode = multiple_files; int exit_status = 0; |