Module Name:    src
Committed By:   joerg
Date:           Sat Aug 27 17:07:28 UTC 2011

Modified Files:
        src/sbin/dmctl: dmctl.c

Log Message:
static. dead.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/dmctl/dmctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dmctl/dmctl.c
diff -u src/sbin/dmctl/dmctl.c:1.2 src/sbin/dmctl/dmctl.c:1.3
--- src/sbin/dmctl/dmctl.c:1.2	Tue Feb  8 13:58:54 2011
+++ src/sbin/dmctl/dmctl.c	Sat Aug 27 17:07:28 2011
@@ -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;

Reply via email to