diff options
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/split.c b/src/split.c index d425b5295..b9aba0483 100644 --- a/src/split.c +++ b/src/split.c @@ -67,18 +67,18 @@ static int input_desc; static int output_desc; /* If non-zero, display usage information and exit. */ -static int flag_help; +static int show_help; -/* If non-zero, print the version on standard error. */ -static int flag_version; +/* If non-zero, print the version on standard output then exit. */ +static int show_version; static struct option const longopts[] = { {"bytes", required_argument, NULL, 'b'}, {"lines", required_argument, NULL, 'l'}, {"line-bytes", required_argument, NULL, 'C'}, - {"help", no_argument, &flag_help, 1}, - {"version", no_argument, &flag_version, 1}, + {"help", no_argument, &show_help, 1}, + {"version", no_argument, &show_version, 1}, {NULL, 0, NULL, 0} }; @@ -184,13 +184,13 @@ main (argc, argv) } } - if (flag_version) + if (show_version) { - fprintf (stderr, "%s\n", version_string); + printf ("%s\n", version_string); exit (0); } - if (flag_help) + if (show_help) usage ((char *)0); /* Handle default case. */ |