summaryrefslogtreecommitdiff
path: root/src/mknod.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-11-09 17:39:24 +0000
committerJim Meyering <jim@meyering.net>1992-11-09 17:39:24 +0000
commit17387a999c446fab250321a02cbcb7774ec6c032 (patch)
treedc1908dd9bcc3fdd6d4f1dadfae178b12afe08f0 /src/mknod.c
parent925487607cfed5d4e68ffa375bc17941934dba07 (diff)
downloadcoreutils-17387a999c446fab250321a02cbcb7774ec6c032.tar.xz
Declared lots of external functions and variables static.
Made several statically-initialized arrays `const.'
Diffstat (limited to 'src/mknod.c')
-rw-r--r--src/mknod.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mknod.c b/src/mknod.c
index d49070cbd..d3091a5bf 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -34,12 +34,13 @@
#include "modechange.h"
void error ();
-void usage ();
+
+static void usage ();
/* The name this program was run with. */
char *program_name;
-static struct option longopts[] =
+static struct option const longopts[] =
{
{"mode", 1, NULL, 'm'},
{NULL, 0, NULL, 0}
@@ -132,7 +133,7 @@ main (argc, argv)
exit (0);
}
-void
+static void
usage ()
{
fprintf (stderr, "\