diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 23:14:17 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 23:14:17 +0000 |
commit | eae57519cdf7506ddbe41942bc1715df84314bf0 (patch) | |
tree | 4a11208d8a73cfdcca6cabb6a0965497bac48e45 | |
parent | 86c940cf997e9ce416cc5e450abfa68838ea7ae7 (diff) | |
download | coreutils-eae57519cdf7506ddbe41942bc1715df84314bf0.tar.xz |
(print_element): Use bool for booleans.
-rw-r--r-- | src/uname.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/uname.c b/src/uname.c index fa2f68ba9..834440b50 100644 --- a/src/uname.c +++ b/src/uname.c @@ -136,9 +136,10 @@ Print certain system information. With no OPTION, same as -s.\n\ static void print_element (char const *element) { - static int printed; - if (printed++) + static bool printed; + if (printed) putchar (' '); + printed = true; fputs (element, stdout); } @@ -149,7 +150,7 @@ main (int argc, char **argv) static char const unknown[] = "unknown"; /* Mask indicating which elements to print. */ - unsigned toprint = 0; + unsigned int toprint = 0; initialize_main (&argc, &argv); program_name = argv[0]; |