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

Date: Mon, 12 Aug 2013 17:46:04 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=51317

User: alagoutte
Date: 2013/08/12 10:46 AM

Log:
 Fix error when enable "debug" in wiretap/pcapng.c file
 
 With gcc :
 pcapng.c: In function 'pcapng_read_packet_block':
 pcapng.c:1147:9: error: request for member 'pseudo_header' in something not a structure or union
 
 With clang :
 pcapng.c:1150:86: error: member reference type 'struct wtap_pkthdr *' is a pointer; maybe you meant to use '->'?
                        pcap_get_phdr_size(int_data.wtap_encap, &wblock->packet_header.pseudo_header));
                                                                 ~~~~~~~~~~~~~~~~~~~~~^
                                                                                      ->
 (Error message from clang is better...)

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