From ed57128990c02342e1abe7f2a3abd1568f965dc7 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 13 Jul 2013 16:02:01 +0200 Subject: dissector_eth: sparse: fix sparse warning This fixes the following sparse warnings: dissector_eth.c:43:16: warning: Using plain integer as NULL pointer dissector_eth.c:48:16: warning: Using plain integer as NULL pointer dissector_eth.c:53:16: warning: Using plain integer as NULL pointer Signed-off-by: Daniel Borkmann --- dissector_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dissector_eth.c b/dissector_eth.c index 41af9d2..c700943 100644 --- a/dissector_eth.c +++ b/dissector_eth.c @@ -35,7 +35,7 @@ struct port { while (entry && id != entry->id) \ entry = entry->next; \ \ - (entry && id == entry->id ? entry->struct_member : 0); \ + (entry && id == entry->id ? entry->struct_member : NULL); \ }) char *lookup_port_udp(unsigned int id) -- cgit v1.2.3-54-g00ecf