diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-06 11:36:27 +0000 |
commit | e2ddf551fe54f5fd63dbb0131d6835d07f172753 (patch) | |
tree | ee263115c37260360e628dc4fc5e029d18e30311 /sbin/modload/elf.c | |
parent | ecdee9dbaa69f9aa6f959777e5e515c31bb6a0f8 (diff) |
Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'
for chars.
Diffstat (limited to 'sbin/modload/elf.c')
-rw-r--r-- | sbin/modload/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |