Changeset e1868fb for lib/trace.c


Ignore:
Timestamp:
12/31/06 17:41:10 (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:
4746c71
Parents:
e2d49d5
Message:

Add attribute((format(printf))) flags to functions that should have it.
Found a nasty bug in trace_get_server_port() where the body of an if() wasn't
correctly {}'d.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r4bd8a5b re1868fb  
    241241 * and then prints out the help() function registered with each input module
    242242 */
    243 DLLEXPORT void trace_help() {
     243DLLEXPORT void trace_help(void) {
    244244        struct libtrace_format_t *tmp;
    245245        trace_init();
     
    11711171
    11721172        /* dynamic range */
    1173         if (DYNAMIC(source) && DYNAMIC(dest))
     1173        if (DYNAMIC(source) && DYNAMIC(dest)) {
    11741174                if (source < dest)
    11751175                        return USE_SOURCE;
    11761176                return USE_DEST;
     1177        }
    11771178        if (DYNAMIC(source) && !DYNAMIC(dest))
    11781179                return USE_DEST;
Note: See TracChangeset for help on using the changeset viewer.