summaryrefslogtreecommitdiff
path: root/proto_ipv6_fragm.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:16:17 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:20:17 +0200
commitbf9232fb613b33f178e8409be42290977f243255 (patch)
treee3f97b4a1bf6a655359e1f297e6f33c83de5a931 /proto_ipv6_fragm.c
parente513602eb85a742924abe5b60b5140a87ca86acb (diff)
trafgen: setup_shared_var: fix couple of things
1) Fix a couple of sparse warnings: trafgen.c:382:27: error: cannot size expression trafgen.c:391:33: error: cannot size expression trafgen.c:393:33: error: cannot size expression trafgen.c:401:25: error: cannot size expression 2) Use MAP_FAILED instead of (void *) -1 3) No need to cast to void * on mmap(2) 4) Use NULL instead of 0 as mmap(2)'s first argument Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'proto_ipv6_fragm.c')
0 files changed, 0 insertions, 0 deletions