From a46f7e7c92562db4b3f6b02bc31942dd9999c724 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Tue, 23 Dec 2003 11:01:17 +0000 Subject: [PATCH] Catch a few places where NULL (pointer) was used where 0 (integer) was expected (fix build). --- sys/netinet6/ip6_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 55dbd031a770..821a03539dce 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -2097,10 +2097,10 @@ do { \ caddr_t oval = (caddr_t)sopt->sopt_val; error = soopt_getm(sopt, &m); /* XXX */ - if (error != NULL) + if (error != 0) break; error = soopt_mcopyin(sopt, m); /* XXX */ - if (error != NULL) + if (error != 0) break; sopt->sopt_valsize = ovalsize; sopt->sopt_val = oval;