src/tremashark/pcap_queue.c in trema-0.2.5 vs src/tremashark/pcap_queue.c in trema-0.2.6

- old
+ new

@@ -55,11 +55,11 @@ return true; } buffer * -create_pcap_packet( void* pcap_header, size_t pcap_len, void* dump_header, size_t dump_len, void* data, size_t data_len ) { +create_pcap_packet( void *pcap_header, size_t pcap_len, void *dump_header, size_t dump_len, void *data, size_t data_len ) { size_t length = pcap_len + dump_len + data_len; assert( length != 0 ); assert( pcap_header != NULL && dump_header != NULL ); buffer *buf = alloc_buffer_with_length( length ); @@ -88,10 +88,10 @@ bool delete_pcap_packet( buffer *packet ) { assert( packet != NULL ); - + free_buffer( packet ); return true; }