aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-09-29 00:37:04 +0000
committerGuy Harris <guy@alum.mit.edu>2013-09-29 00:37:04 +0000
commit640a45d707e1cbf0d21fffd445d770e811584628 (patch)
treec86cd4231028e125e0d8edd549b444036fcae8e7 /rawshark.c
parentdc0b7253e49ee02bd731056618dc247fa616f01f (diff)
Get rid of a redundant check - pcapng_read_packet_block() already checks
whether the (zero-based) interface ID is < the number of interface IDs, so we don't need to do so in pcapng_read(). Unions are tricky - if the compiler doesn't ensure that the right component of the union is being used at any given time, various problems can happen. Remove some members from the "data" union in the wtapng_block_t structure, and use a local variable of the specified type. svn path=/trunk/; revision=52262
Diffstat (limited to 'rawshark.c')
0 files changed, 0 insertions, 0 deletions