Ignore:
Timestamp:
11/14/08 15:47:59 (12 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
9b25f5f
Parents:
896ad39
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_transport.c

    raa22b5b r871281c  
    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.