diff options
author | 2010-06-29 17:16:35 +0000 | |
---|---|---|
committer | 2010-06-29 17:16:35 +0000 | |
commit | fddd8edc5210366886c0a2129d661085c58dbad6 (patch) | |
tree | f6c665a5aa0839b8ade83574cd9e80aa03c01d21 | |
parent | avoid a null pointer deref. ok jsg (diff) | |
download | wireguard-openbsd-fddd8edc5210366886c0a2129d661085c58dbad6.tar.xz wireguard-openbsd-fddd8edc5210366886c0a2129d661085c58dbad6.zip |
please attempt to match the style of the code
-rw-r--r-- | usr.bin/usbhidaction/usbhidaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/usbhidaction/usbhidaction.c b/usr.bin/usbhidaction/usbhidaction.c index 5f14949d134..92e47122d78 100644 --- a/usr.bin/usbhidaction/usbhidaction.c +++ b/usr.bin/usbhidaction/usbhidaction.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usbhidaction.c,v 1.13 2010/06/29 17:15:23 ckuethe Exp $ */ +/* $OpenBSD: usbhidaction.c,v 1.14 2010/06/29 17:16:35 deraadt Exp $ */ /* $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */ /* @@ -400,10 +400,10 @@ docmd(struct command *cmd, int value, const char *hid, int argc, char **argv) size_t len; int n, r; - if (cmd->action == NULL){ + if (cmd->action == NULL) { if (verbose) printf("no action for device %s value %d\n", - hid, value); + hid, value); return; } for (p = cmd->action, q = cmdbuf; *p && q < &cmdbuf[SIZE-1]; ) { |