Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove some variables that are set but not used.
details: https://anonhg.NetBSD.org/src/rev/6f90b1810481
branches: trunk
changeset: 538523:6f90b1810481
user: simonb <simonb%NetBSD.org@localhost>
date: Tue Oct 22 03:27:47 2002 +0000
description:
Remove some variables that are set but not used.
diffstat:
sys/kern/subr_userconf.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (66 lines):
diff -r bc296aceaeb1 -r 6f90b1810481 sys/kern/subr_userconf.c
--- a/sys/kern/subr_userconf.c Tue Oct 22 03:23:24 2002 +0000
+++ b/sys/kern/subr_userconf.c Tue Oct 22 03:27:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_userconf.c,v 1.9 2002/10/04 01:50:53 thorpej Exp $ */
+/* $NetBSD: subr_userconf.c,v 1.10 2002/10/22 03:27:47 simonb Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_userconf.c,v 1.9 2002/10/04 01:50:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_userconf.c,v 1.10 2002/10/22 03:27:47 simonb Exp $");
#include "opt_userconf.h"
@@ -230,7 +230,6 @@
const struct cfparent *cfp;
int *l;
const char * const *ln;
- char c;
if (devno > userconf_maxdev) {
printf("Unknown devno (max is %d)\n", userconf_maxdev);
@@ -242,7 +241,6 @@
printf("[%3d] ", devno);
userconf_pdevnam(devno);
printf(" at");
- c = ' ';
cfp = cd->cf_pspec;
if (cfp == NULL)
printf(" root");
@@ -364,14 +362,13 @@
int ok = 0;
int a;
char *c;
- int i;
while (!ok) {
printf("%s [", item);
userconf_pnum(*val);
printf("] ? ");
- i = getsn(userconf_argbuf, sizeof(userconf_argbuf));
+ getsn(userconf_argbuf, sizeof(userconf_argbuf));
c = userconf_argbuf;
while (*c == ' ' || *c == '\t' || *c == '\n') c++;
@@ -670,14 +667,13 @@
int ok = 0;
int a;
char *c;
- int i;
*val = -1;
while (!ok) {
printf("%s ? ", prompt);
- i = getsn(userconf_argbuf, sizeof(userconf_argbuf));
+ getsn(userconf_argbuf, sizeof(userconf_argbuf));
c = userconf_argbuf;
while (*c == ' ' || *c == '\t' || *c == '\n') c++;
Home |
Main Index |
Thread Index |
Old Index