Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/dmctl static. dead.



details:   https://anonhg.NetBSD.org/src/rev/f7860fdf91af
branches:  trunk
changeset: 768797:f7860fdf91af
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Aug 27 17:07:28 2011 +0000

description:
static. dead.

diffstat:

 sbin/dmctl/dmctl.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r fb504cd1b1f0 -r f7860fdf91af sbin/dmctl/dmctl.c
--- a/sbin/dmctl/dmctl.c        Sat Aug 27 17:06:08 2011 +0000
+++ b/sbin/dmctl/dmctl.c        Sat Aug 27 17:07:28 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index