Changeset 9e830d4


Ignore:
Timestamp:
04/08/06 17:34:32 (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:
dd4b39b
Parents:
f2f47a7
Message:

More portability/warnings fixed

Location:
lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lib/common.h

    r0d57541 r9e830d4  
    3030#  define LIBTRACE_FILE int
    3131#  define LIBTRACE_SEEK(file,offset,whence) lseek(file,offset,whence)
    32 #  define LIBTRACE_TELL(file) tell(file,0,SEEK_CUR)
     32#  define LIBTRACE_TELL(file) lseek(file,0,SEEK_CUR)
    3333#endif
    3434
  • lib/fifo.c

    r689c220 r9e830d4  
    3535#include <stdio.h> /* sprintf, printf */
    3636#include <assert.h> /* assert */
     37#include <string.h> /* memset / memcpy */
    3738#include "libtrace_int.h"
    3839
  • lib/format_erf.c

    r23971d0 r9e830d4  
    197197        libtrace->format_data = malloc(sizeof(struct erf_format_data_t));
    198198       
    199         INPUT.file = NULL;
     199        INPUT.file = 0;
    200200
    201201        return 0; /* success */
     
    391391}
    392392
    393 static int erf_config_output(libtrace_out_t *libtrace, trace_option_t option, void *value) {
     393static int erf_config_output(libtrace_out_t *libtrace, trace_option_output_t option,
     394                void *value) {
    394395
    395396        switch (option) {
  • lib/libtrace_int.h

    raf52072 r9e830d4  
    189189        int (*init_output)(libtrace_out_t *libtrace);
    190190        /** configure output traces (or NULL if output not supported) */
    191         int (*config_output)(libtrace_out_t *libtrace, trace_option_output_t, void *);
     191        int (*config_output)(libtrace_out_t *libtrace, trace_option_output_t option, void *);
    192192        /** start output traces (or NULL if output not supported)
    193193         * There is no pause for output traces, as packets are not arriving
Note: See TracChangeset for help on using the changeset viewer.