Sat Aug 27 17:07:28 2011 UTC ()
static. dead.


(joerg)
diff -r1.2 -r1.3 src/sbin/dmctl/dmctl.c

cvs diff -r1.2 -r1.3 src/sbin/dmctl/dmctl.c (expand / switch to context diff)
--- src/sbin/dmctl/dmctl.c 2011/02/08 13:58:54 1.2
+++ src/sbin/dmctl/dmctl.c 2011/08/27 17:07:28 1.3
@@ -66,9 +66,8 @@
 	int (*cmd_func)(int, char *[], libdm_task_t);
 };
 
-int     fd;                             /* file descriptor for device */
-const   char *dvname;                   /* device name */
-const   char *cmdname;                  /* command user issued */
+static const   char *dvname;            /* device name */
+static const   char *cmdname;           /* command user issued */
 
 static char * parse_stdin(char *);
 
@@ -84,9 +83,9 @@
 static int dmctl_list_devices(int, char *[], libdm_task_t);
 static int dmctl_table_reload(int, char *[], libdm_task_t);
 static int dmctl_table_status(int, char *[], libdm_task_t);
-void usage(void);
+__dead static void usage(void);
 
-struct command commands[] = {
+static struct command commands[] = {
 	{ "version",
 	  "Print driver and lib version.",
 	  NULL, DMCTL_CMD_REQ_NODEVNAME,
@@ -537,7 +536,7 @@
 	return 0;
 }
 
-void
+static void
 usage(void)
 {
 	int i;