Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/modload Don't compare an integer to NULL.
details: https://anonhg.NetBSD.org/src/rev/03744ccd29c0
branches: trunk
changeset: 553759:03744ccd29c0
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 02:31:08 2003 +0000
description:
Don't compare an integer to NULL.
diffstat:
sbin/modload/elf.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 732839b51161 -r 03744ccd29c0 sbin/modload/elf.c
--- a/sbin/modload/elf.c Tue Oct 21 02:30:03 2003 +0000
+++ b/sbin/modload/elf.c Tue Oct 21 02:31:08 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf.c,v 1.14 2002/11/07 05:55:08 thorpej Exp $ */
+/* $NetBSD: elf.c,v 1.15 2003/10/21 02:31:08 fvdl Exp $ */
/*
* Copyright (c) 1998 Johan Danielsson <joda%pdc.kth.se@localhost>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: elf.c,v 1.14 2002/11/07 05:55:08 thorpej Exp $");
+__RCSID("$NetBSD: elf.c,v 1.15 2003/10/21 02:31:08 fvdl Exp $");
#include <sys/param.h>
@@ -344,7 +344,7 @@
ssize_t n;
if (ldscript == NULL) {
- if (data_offset == NULL)
+ if (data_offset == 0)
n = snprintf(buf, len, LINKCMD, kernel, entry,
outfile, address, object);
else
@@ -353,7 +353,7 @@
(const char *)address + data_offset,
object);
} else {
- if (data_offset == NULL)
+ if (data_offset == 0)
n = snprintf(buf, len, LINKSCRIPTCMD, ldscript, kernel,
entry, outfile, address, object);
else
Home |
Main Index |
Thread Index |
Old Index