summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2012-07-13 10:15:20 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2012-07-13 10:15:20 +0000
commit8b9da3bd78297e947ae23cbc002dee8e07816576 (patch)
tree327bda5fa228144930e7a870a8d2a2b9727ae590 /sbin
parente88a6f2d21a7d8b0565da510ebae982d4e31a4be (diff)
Use NULL instead of 0 for pointers
ok gilles@, guenther@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kbd/kbd_wscons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c
index 6cd114b05ad..f008efb3b77 100644
--- a/sbin/kbd/kbd_wscons.c
+++ b/sbin/kbd/kbd_wscons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd_wscons.c,v 1.25 2008/06/23 17:41:21 miod Exp $ */
+/* $OpenBSD: kbd_wscons.c,v 1.26 2012/07/13 10:15:19 shadchin Exp $ */
/*
* Copyright (c) 2001 Mats O Jansson. All rights reserved.
@@ -93,13 +93,13 @@ struct nameint {
struct nameint kbdenc_tab[] = {
KB_ENCTAB
,
- { 0, 0 }
+ { 0, NULL }
};
struct nameint kbdvar_tab[] = {
KB_VARTAB
,
- { 0, 0 }
+ { 0, NULL }
};
extern char *__progname;
@@ -232,7 +232,7 @@ kbd_list(void)
}
#ifndef NOKVM
- if ((kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf)) == 0)
+ if ((kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL)
errx(1, "kvm_openfiles: %s", errbuf);
if (kvm_nlist(kd, nl) == -1)