diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-13 16:02:01 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-13 16:02:01 +0200 |
commit | ed57128990c02342e1abe7f2a3abd1568f965dc7 (patch) | |
tree | 65c36296d75dcebd26a24d7c62df2de721950127 /dissector_eth.c | |
parent | 6258bb8e799fbb5bf31742825a02d4c90df7983f (diff) |
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 <dborkman@redhat.com>
Diffstat (limited to 'dissector_eth.c')
-rw-r--r-- | dissector_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |