diff options
author | 2011-04-06 11:36:23 +0000 | |
---|---|---|
committer | 2011-04-06 11:36:23 +0000 | |
commit | 691235adb977a6a7730c100aa9b733644d50c443 (patch) | |
tree | 55fba51a8d239644006a1329a3fb5146e9974cc9 /lib/libusbhid/usage.c | |
parent | Local variables storing integer values and printed with %d should be (diff) | |
download | wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.tar.xz wireguard-openbsd-691235adb977a6a7730c100aa9b733644d50c443.zip |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'lib/libusbhid/usage.c')
-rw-r--r-- | lib/libusbhid/usage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusbhid/usage.c b/lib/libusbhid/usage.c index 228dbb74c47..12f157d6eab 100644 --- a/lib/libusbhid/usage.c +++ b/lib/libusbhid/usage.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usage.c,v 1.13 2007/09/03 14:26:54 deraadt Exp $ */ +/* $OpenBSD: usage.c,v 1.14 2011/04/06 11:36:25 miod Exp $ */ /* $NetBSD: usage.c,v 1.1 2001/12/28 17:45:27 augustss Exp $ */ /* @@ -252,7 +252,7 @@ hid_parse_usage_page(const char *name) int k; if (!pages) - return NULL; + return 0; for (k = 0; k < npages; k++) if (strcmp(pages[k].name, name) == 0) |