Module Name: src
Committed By: lukem
Date: Sun Apr 19 08:53:38 UTC 2009
Modified Files:
src/usr.sbin/pvctxctl: pvctxctl.c
Log Message:
fix -Wshadow
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/pvctxctl/pvctxctl.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/pvctxctl/pvctxctl.c
diff -u src/usr.sbin/pvctxctl/pvctxctl.c:1.5 src/usr.sbin/pvctxctl/pvctxctl.c:1.6
--- src/usr.sbin/pvctxctl/pvctxctl.c:1.5 Tue Jan 16 17:32:05 2007
+++ src/usr.sbin/pvctxctl/pvctxctl.c Sun Apr 19 08:53:37 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pvctxctl.c,v 1.5 2007/01/16 17:32:05 hubertf Exp $ */
+/* $NetBSD: pvctxctl.c,v 1.6 2009/04/19 08:53:37 lukem Exp $ */
/*
* Copyright (C) 1998
@@ -184,19 +184,19 @@
}
static int
-str2vc(char *str, int *vpi, int *vci)
+str2vc(char *str, int *vpip, int *vcip)
{
char *c;
if ((c = strchr(str, ':')) != NULL) {
*c = '\0';
- *vpi = strtol(str, NULL, 0);
+ *vpip = strtol(str, NULL, 0);
str = c + 1;
}
else
- *vpi = 0;
+ *vpip = 0;
- *vci = strtol(str, NULL, 0);
+ *vcip = strtol(str, NULL, 0);
return (0);
}