From e2ddf551fe54f5fd63dbb0131d6835d07f172753 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 6 Apr 2011 11:36:27 +0000 Subject: Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0' for chars. --- sbin/modload/elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/modload/elf.c') diff --git a/sbin/modload/elf.c b/sbin/modload/elf.c index fe223ece602..d6c3da523e0 100644 --- a/sbin/modload/elf.c +++ b/sbin/modload/elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf.c,v 1.7 2004/12/28 09:05:18 deraadt Exp $ */ +/* $OpenBSD: elf.c,v 1.8 2011/04/06 11:36:26 miod Exp $ */ /* $NetBSD: elf.c,v 1.8 2002/01/03 21:45:58 jdolecek Exp $ */ /* @@ -328,7 +328,7 @@ elf_linkcmd(char *buf, size_t len, const char *kernel, { ssize_t n; - if (data_offset == NULL) + if (data_offset == 0) n = snprintf(buf, len, LINKCMD, kernel, entry, outfile, address, object); else -- cgit v1.2.3