Wireshark-commits: [Wireshark-commits] rev 52262: /trunk/wiretap/ /trunk/wiretap/: pcapng.c

Date: Sun, 29 Sep 2013 00:37:05 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=52262

User: guy
Date: 2013/09/29 12:37 AM

Log:
 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.

Directory: /trunk/wiretap/
  Changes    Path          Action
  +74 -89    pcapng.c      Modified