aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 06:22:07 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 06:22:07 -0700
commitb3854e9342473c4ec0f7b319d094a405c6dc263a (patch)
tree8e676576a7146ce332cd8a998cee392f45cbd2f5 /net
parent9ee9887b991748e22f32d18b6756448d0a62a076 (diff)
downloadhistory-b3854e9342473c4ec0f7b319d094a405c6dc263a.tar.gz
sparse: get rid of more integer/pointer confusion
Use NULL, not 0, where appropriate.
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/esp4.c2
-rw-r--r--net/ipv4/netfilter/ip_conntrack_proto_tcp.c4
-rw-r--r--net/key/af_key.c4
-rw-r--r--net/sunrpc/auth_gss/svcauth_gss.c4
-rw-r--r--net/sunrpc/stats.c2
-rw-r--r--net/unix/af_unix.c2
6 files changed, 9 insertions, 9 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c
index 1fa9a9b98d83b5..625c0f18b815f0 100644
--- a/net/ipv4/esp4.c
+++ b/net/ipv4/esp4.c
@@ -121,7 +121,7 @@ int esp_output(struct sk_buff **pskb)
top_iph->tot_len = htons((*pskb)->len + alen);
top_iph->frag_off = iph->frag_off&htons(IP_DF);
if (!(top_iph->frag_off))
- ip_select_ident(top_iph, dst, 0);
+ ip_select_ident(top_iph, dst, NULL);
top_iph->ttl = iph->ttl; /* TTL disclosed */
top_iph->check = 0;
top_iph->saddr = x->props.saddr.a4;
diff --git a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
index 1cc796556f2767..463cafa6692af7 100644
--- a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
+++ b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
@@ -67,7 +67,7 @@ unsigned long ip_ct_tcp_timeout_time_wait = 2 MINS;
unsigned long ip_ct_tcp_timeout_close = 10 SECS;
static unsigned long * tcp_timeouts[]
-= { 0, /* TCP_CONNTRACK_NONE */
+= { NULL, /* TCP_CONNTRACK_NONE */
&ip_ct_tcp_timeout_established, /* TCP_CONNTRACK_ESTABLISHED, */
&ip_ct_tcp_timeout_syn_sent, /* TCP_CONNTRACK_SYN_SENT, */
&ip_ct_tcp_timeout_syn_recv, /* TCP_CONNTRACK_SYN_RECV, */
@@ -76,7 +76,7 @@ static unsigned long * tcp_timeouts[]
&ip_ct_tcp_timeout_close, /* TCP_CONNTRACK_CLOSE, */
&ip_ct_tcp_timeout_close_wait, /* TCP_CONNTRACK_CLOSE_WAIT, */
&ip_ct_tcp_timeout_last_ack, /* TCP_CONNTRACK_LAST_ACK, */
- 0, /* TCP_CONNTRACK_LISTEN */
+ NULL, /* TCP_CONNTRACK_LISTEN */
};
#define sNO TCP_CONNTRACK_NONE
diff --git a/net/key/af_key.c b/net/key/af_key.c
index 68497a25070e9d..1553eb1fa3fa41 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -2857,7 +2857,7 @@ static struct xfrm_mgr pfkeyv2_mgr =
static void __exit ipsec_pfkey_exit(void)
{
xfrm_unregister_km(&pfkeyv2_mgr);
- remove_proc_entry("net/pfkey", 0);
+ remove_proc_entry("net/pfkey", NULL);
sock_unregister(PF_KEY);
}
@@ -2865,7 +2865,7 @@ static int __init ipsec_pfkey_init(void)
{
sock_register(&pfkey_family_ops);
#ifdef CONFIG_PROC_FS
- create_proc_read_entry("net/pfkey", 0, 0, pfkey_read_proc, NULL);
+ create_proc_read_entry("net/pfkey", 0, NULL, pfkey_read_proc, NULL);
#endif
xfrm_register_km(&pfkeyv2_mgr);
return 0;
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index 55b2fd10489388..8cb95cab79ddfa 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -763,7 +763,7 @@ svcauth_gss_accept(struct svc_rqst *rqstp, u32 *authp)
if (!svcdata)
goto auth_err;
rqstp->rq_auth_data = svcdata;
- svcdata->body_start = 0;
+ svcdata->body_start = NULL;
svcdata->rsci = NULL;
gc = &svcdata->clcred;
@@ -970,7 +970,7 @@ svcauth_gss_release(struct svc_rqst *rqstp)
break;
case RPC_GSS_SVC_INTEGRITY:
p = gsd->body_start;
- gsd->body_start = 0;
+ gsd->body_start = NULL;
/* move accept_stat to right place: */
memcpy(p, p + 2, 4);
/* don't wrap in failure case: */
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c
index 9a95d858aaaa3d..9b67dc19944c0d 100644
--- a/net/sunrpc/stats.c
+++ b/net/sunrpc/stats.c
@@ -169,7 +169,7 @@ rpc_proc_exit(void)
dprintk("RPC: unregistering /proc/net/rpc\n");
if (proc_net_rpc) {
proc_net_rpc = NULL;
- remove_proc_entry("net/rpc", 0);
+ remove_proc_entry("net/rpc", NULL);
}
}
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index e19475e6a0c228..c266bd6fa67a8b 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2034,7 +2034,7 @@ static int __init af_unix_init(void)
/* allocate our sock slab cache */
unix_sk_cachep = kmem_cache_create("unix_sock",
sizeof(struct unix_sock), 0,
- SLAB_HWCACHE_ALIGN, 0, 0);
+ SLAB_HWCACHE_ALIGN, NULL, NULL);
if (!unix_sk_cachep)
printk(KERN_CRIT
"af_unix_init: Cannot create unix_sock SLAB cache!\n");