diff options
author | Jim Meyering <jim@meyering.net> | 1992-11-12 04:14:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-11-12 04:14:54 +0000 |
commit | 88b70560464afbc44c6233abbb7375fd5c464124 (patch) | |
tree | 8cd20ebb560f9ec40e0c17474f507adb5269a8c3 /src/uname.c | |
parent | 5fc2263354892487337ab870520c9b682e8a893e (diff) | |
download | coreutils-88b70560464afbc44c6233abbb7375fd5c464124.tar.xz |
all files: make most variables static and const when possible.
declare lots of functions static.
Diffstat (limited to 'src/uname.c')
-rw-r--r-- | src/uname.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/uname.c b/src/uname.c index 4b7a6f5c5..5ddd63101 100644 --- a/src/uname.c +++ b/src/uname.c @@ -35,8 +35,9 @@ #include "system.h" void error (); -void print_element (); -void usage (); + +static void print_element (); +static void usage (); /* Values that are bitwise or'd into `toprint'. */ /* Operating system name. */ @@ -60,7 +61,7 @@ static unsigned char toprint; /* The name this program was run with, for error messages. */ char *program_name; -static struct option long_options[] = +static struct option const long_options[] = { {"sysname", 0, NULL, 's'}, {"nodename", 0, NULL, 'n'}, @@ -133,7 +134,7 @@ main (argc, argv) print ELEMENT; then print a space unless it is the last element to be printed, in which case print a newline. */ -void +static void print_element (mask, element) unsigned char mask; char *element; @@ -145,7 +146,7 @@ print_element (mask, element) } } -void +static void usage () { fprintf (stderr, "\ |