Source-Changes-HG archive

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

[src/trunk]: src/sbin/atactl Remove write-only variable.



details:   https://anonhg.NetBSD.org/src/rev/da9faf35cc92
branches:  trunk
changeset: 770744:da9faf35cc92
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Oct 31 14:50:10 2011 +0000

description:
Remove write-only variable.

diffstat:

 sbin/atactl/atactl.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r e1ced15c3636 -r da9faf35cc92 sbin/atactl/atactl.c
--- a/sbin/atactl/atactl.c      Mon Oct 31 14:44:07 2011 +0000
+++ b/sbin/atactl/atactl.c      Mon Oct 31 14:50:10 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atactl.c,v 1.64 2011/10/31 14:44:07 jakllsch Exp $     */
+/*     $NetBSD: atactl.c,v 1.65 2011/10/31 14:50:10 jakllsch Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: atactl.c,v 1.64 2011/10/31 14:44:07 jakllsch Exp $");
+__RCSID("$NetBSD: atactl.c,v 1.65 2011/10/31 14:50:10 jakllsch Exp $");
 #endif
 
 
@@ -121,7 +121,6 @@
 static const   char *dvname;                   /* device name */
 static char    dvname_store[MAXPATHLEN];       /* for opendisk(3) */
 static const   char *cmdname;                  /* command user issued */
-static const   char *argnames;         /* helpstring: expected arguments */
 
 static void    device_identify(int, char *[]);
 static void    device_setidle(int, char *[]);
@@ -378,8 +377,6 @@
        if (commands == NULL)
                errx(1, "unknown command: %s", cmdname);
 
-       argnames = commands->arg_names;
-
        (*commands->cmd_func)(argc, argv);
        exit(0);
 }



Home | Main Index | Thread Index | Old Index