diff options
author | 2007-10-17 01:16:04 +0000 | |
---|---|---|
committer | 2007-10-17 01:16:04 +0000 | |
commit | ce6c83c68de7d6b3a5f8d3308404aaa51f637b48 (patch) | |
tree | ae837a112dc7ffdbb59b200bc34ab5a1f4554994 | |
parent | more remove unneeded declarations that shadows existing vars; ok by many. (diff) | |
download | wireguard-openbsd-ce6c83c68de7d6b3a5f8d3308404aaa51f637b48.tar.xz wireguard-openbsd-ce6c83c68de7d6b3a5f8d3308404aaa51f637b48.zip |
- Remove a shadow declaration.
- Correct resp size.
deraadt@ ok.
-rw-r--r-- | sys/dev/pckbc/pckbd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pckbc/pckbd.c b/sys/dev/pckbc/pckbd.c index 9d32ec98407..215491e4dd0 100644 --- a/sys/dev/pckbc/pckbd.c +++ b/sys/dev/pckbc/pckbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pckbd.c,v 1.9 2007/01/30 20:45:05 jcs Exp $ */ +/* $OpenBSD: pckbd.c,v 1.10 2007/10/17 01:16:04 fgsch Exp $ */ /* $NetBSD: pckbd.c,v 1.24 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -212,7 +212,6 @@ pckbd_set_xtscancode(kbctag, kbcslot) cmd[0] = KBC_SETTABLE; cmd[1] = table; if (pckbc_poll_cmd(kbctag, kbcslot, cmd, 2, 0, 0, 0)) { - u_char cmd[1]; #ifdef DEBUG printf("pckbd: table set of %d failed\n", table); #endif @@ -232,7 +231,7 @@ pckbd_set_xtscancode(kbctag, kbcslot) * table it reports it's in. */ if (table == 3) { - u_char cmd[1], resp[0]; + u_char resp[1]; cmd[0] = KBC_SETTABLE; cmd[1] = 0; |