@@ -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;