diff options
author | Jim Meyering <jim@meyering.net> | 1996-01-06 11:44:05 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-01-06 11:44:05 +0000 |
commit | 53398947a1482e8b83e204186969af6147eaae6e (patch) | |
tree | bf4de064df1f022c2e01051b45cafc454ed839c4 /src/seq.c | |
parent | 5e14cce7ae90f69cf4609b7731377e934e79c219 (diff) | |
download | coreutils-53398947a1482e8b83e204186969af6147eaae6e.tar.xz |
Protoize and __P-protect forward dcls.
Diffstat (limited to 'src/seq.c')
-rw-r--r-- | src/seq.c | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -25,10 +25,10 @@ #include "error.h" #include "version.h" -static double scan_double_arg (); -static int check_format (); -static char *get_width_format (); -static int print_numbers (); +static double scan_double_arg __P ((char *arg)); +static int check_format __P ((char *format_string)); +static char *get_width_format __P ((void)); +static int print_numbers __P ((char *format_str)); /* If nonzero print all number with equal width. */ static int equal_width; @@ -68,8 +68,7 @@ static struct option const long_options[] = }; static void -usage (status) - int status; +usage (int status) { if (status != 0) (void) fprintf (stderr, _("Try `%s --help' for more information.\n"), @@ -96,9 +95,7 @@ Usage: %s [OPTION]... [from [step]] to\n\ } void -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { int errs; int optc; @@ -223,8 +220,7 @@ format string may not be specified when printing equal width strings")); Return if the string is correct else signal error. */ static double -scan_double_arg (arg) - char *arg; +scan_double_arg (char *arg) { char *end_ptr; double ret_val; @@ -246,8 +242,7 @@ scan_double_arg (arg) Return 0 if not, 1 if correct. */ static int -check_format (format_string) - char *format_string; +check_format (char *format_string) { while (*format_string != '\0') { @@ -371,7 +366,7 @@ get_width_format () #else /* one of the math functions rint, modf, floor is missing. */ static char * -get_width_format () +get_width_format (void) { /* We cannot compute the needed information to determine the correct answer. So we simply return a value that works for all cases. */ @@ -383,8 +378,7 @@ get_width_format () /* Actually print the sequence of numbers in the specified range, with the given or default stepping and format. */ static int -print_numbers (format_str) - char *format_str; +print_numbers (char *format_str) { if (from > last) { |