From 712109716a7b75dda2d34751202d210acd879f6b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 5 Oct 1993 18:29:39 +0000 Subject: merge with 1.8a --- src/sum.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sum.c') diff --git a/src/sum.c b/src/sum.c index 1283078e7..46e672cc3 100644 --- a/src/sum.c +++ b/src/sum.c @@ -40,16 +40,16 @@ static int have_read_stdin; #define ROTATE_RIGHT(c) if ((c) & 01) (c) = ((c) >>1) + 0x8000; else (c) >>= 1; /* 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[] = { {"sysv", no_argument, NULL, 's'}, - {"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} }; @@ -94,13 +94,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 (); files_given = argc - optind; -- cgit v1.2.3-54-g00ecf