Ignore:
Timestamp:
11/14/08 15:47:59 (5 years ago)
Author:
perry
Message:

Make sure NULL is defined.
Make sure stdio is included for printf
Use fprintf, not printf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/protocols_transport.c

    r1376 r1382  
    22#include "protocols.h" 
    33#include <assert.h> 
     4#include <stdlib.h> 
     5#include <stdio.h> // fprintf 
    46 
    57DLLEXPORT void *trace_get_transport(const libtrace_packet_t *packet,  
     
    3739                         
    3840                default: 
    39                         printf("unknown ethertype=%04x\n",ethertype); 
     41                        fprintf(stderr,"unknown ethertype=%04x\n",ethertype); 
    4042                        *proto=0; 
    4143                        return NULL; 
Note: See TracChangeset for help on using the changeset viewer.