[PATCH 1/8] nf_nat_snmp: sparse warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use of 0 as NULL causes sparse complaint.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>

--- a/net/ipv4/netfilter/nf_nat_snmp_basic.c	2008-01-23 10:07:23.000000000 -0800
+++ b/net/ipv4/netfilter/nf_nat_snmp_basic.c	2008-01-23 10:07:31.000000000 -0800
@@ -260,7 +260,7 @@ static unsigned char asn1_eoc_decode(str
 {
 	unsigned char ch;
 
-	if (eoc == 0) {
+	if (eoc == NULL) {
 		if (!asn1_octet_decode(ctx, &ch))
 			return 0;
 

-- 
Stephen Hemminger <stephen.hemminger@xxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux