Changeset 3eff1c8


Ignore:
Timestamp:
09/18/06 23:15:48 (15 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:
e502f76
Parents:
d694056
Message:

More splintisms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_helper.c

    r94af885 r3eff1c8  
    6565        int data;
    6666
    67         assert(trace);
    68         assert(packet);
     67        assert(trace != NULL);
     68        assert(packet != NULL);
    6969       
    7070        if (trace->format->get_fd) {
     
    108108
    109109        ts=trace_get_seconds(trace->event.packet);
    110         if (trace->event.tdelta!=0) {
     110        if (trace->event.tdelta!=0.0) {
    111111                /* Get the adjusted current time */
    112112                gettimeofday(&stv, NULL);
     
    197197        assert(level>=0);
    198198#ifdef HAVE_LIBZ
    199         sprintf(filemode,"wb%d",level);
     199        snprintf(filemode,sizeof(filemode),"wb%d",level);
    200200#else
    201         sprintf(filemode,"wb");
     201        snprintf(filemode,sizeof(filemode),"wb");
    202202#endif
    203203
Note: See TracChangeset for help on using the changeset viewer.