aboutsummaryrefslogtreecommitdiff
path: root/lib/libusbhid/usage.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-09 20:36:07 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-09 20:36:07 +0000
commit2bf493863feef6ec0033f3f18d8abcb0a105d963 (patch)
treea64fc1c28ce33890150327ef2cfc4c0ca17f72b3 /lib/libusbhid/usage.c
parenteaee150e3fa55f875321dac94e76403ad4c978e1 (diff)
downloadsrc-2bf493863feef6ec0033f3f18d8abcb0a105d963.tar.gz
src-2bf493863feef6ec0033f3f18d8abcb0a105d963.zip
USB: replace 0 with NULL for pointers.
Found with devel/coccinelle. Reviewed by: hselasky
Notes
Notes: svn path=/head/; revision=297764
Diffstat (limited to 'lib/libusbhid/usage.c')
-rw-r--r--lib/libusbhid/usage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libusbhid/usage.c b/lib/libusbhid/usage.c
index eeff818afed8..3960dad8076a 100644
--- a/lib/libusbhid/usage.c
+++ b/lib/libusbhid/usage.c
@@ -77,9 +77,9 @@ hid_init(const char *hidname)
char line[100], name[100], *p, *n;
int no;
int lineno;
- struct usage_page *curpage = 0;
+ struct usage_page *curpage = NULL;
- if (hidname == 0)
+ if (hidname == NULL)
hidname = _PATH_HIDTABLE;
f = fopen(hidname, "r");
@@ -124,7 +124,7 @@ hid_init(const char *hidname)
curpage->pagesize++;
} else {
if (npages >= npagesmax) {
- if (pages == 0) {
+ if (pages == NULL) {
npagesmax = 5;
pages = malloc(npagesmax *
sizeof (struct usage_page));