Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/scsictl drop write-only variable
details: https://anonhg.NetBSD.org/src/rev/23344259a238
branches: trunk
changeset: 782468:23344259a238
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Nov 03 19:14:53 2012 +0000
description:
drop write-only variable
diffstat:
sbin/scsictl/scsictl.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 15e8f26850c1 -r 23344259a238 sbin/scsictl/scsictl.c
--- a/sbin/scsictl/scsictl.c Sat Nov 03 17:33:01 2012 +0000
+++ b/sbin/scsictl/scsictl.c Sat Nov 03 19:14:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsictl.c,v 1.33 2011/08/29 14:35:04 joerg Exp $ */
+/* $NetBSD: scsictl.c,v 1.34 2012/11/03 19:14:53 jakllsch Exp $ */
/*-
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: scsictl.c,v 1.33 2011/08/29 14:35:04 joerg Exp $");
+__RCSID("$NetBSD: scsictl.c,v 1.34 2012/11/03 19:14:53 jakllsch Exp $");
#endif
@@ -72,7 +72,6 @@
const char *dvname; /* device name */
char dvname_store[MAXPATHLEN]; /* for opendisk(3) */
const char *cmdname; /* command user issued */
-const char *argnames; /* helpstring: expected arguments */
struct scsi_addr dvaddr; /* SCSI device's address */
void device_defects(int, char *[]);
@@ -182,8 +181,6 @@
errx(1, "unknown %s command: %s",
commands == bus_commands ? "bus" : "device", cmdname);
- argnames = commands[i].arg_names;
-
(*commands[i].cmd_func)(argc, argv);
exit(0);
}
Home |
Main Index |
Thread Index |
Old Index