Wireshark-commits: [Wireshark-commits] rev 26242: /trunk/ /trunk/: text2pcap.c

Date: Sun, 21 Sep 2008 14:04:46 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=26242

User: morriss
Date: 2008/09/21 07:04 AM

Log:
 Declare ts_sec as a time_t because that's how it's used; this avoids a warning
 about how dereferencing a type-punned pointer will break strict-aliasing rules
 when calling localtime().
 Make ts_sec in text2pcap's definition of a PCAP record header unsigned to match
 that in libpcap.h .
 Cast the time_t into guint32 as necessary.

Directory: /trunk/
  Changes    Path           Action
  +8 -8      text2pcap.c    Modified