Fix shadowing of parameter with local variable.

This commit is contained in:
nathanw 2005-06-05 20:01:36 +00:00
parent 7bbdd188e1
commit 30494f81df
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: apm.c,v 1.13 2005/02/01 02:23:26 briggs Exp $ */
/* $NetBSD: apm.c,v 1.14 2005/06/05 20:01:36 nathanw Exp $ */
/* $OpenBSD: apm.c,v 1.5 2002/06/07 07:13:59 miod Exp $ */
/*-
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.13 2005/02/01 02:23:26 briggs Exp $");
__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.14 2005/06/05 20:01:36 nathanw Exp $");
#include "apm.h"
@ -306,9 +306,9 @@ apmioctl(dev, cmd, data, flag, p)
if ((flag & FWRITE) == 0)
error = EBADF;
else {
int flag = *(int *)data;
DPRINTF(( "APM_IOC_PRN_CTL: %d\n", flag ));
switch (flag) {
int op = *(int *)data;
DPRINTF(( "APM_IOC_PRN_CTL: %d\n", op ));
switch (op) {
case APM_PRINT_ON: /* enable printing */
sc->sc_flags &= ~SCFLAG_PRINT;
break;