Changeset f03fc17 for lib/format_erf.c


Ignore:
Timestamp:
02/17/06 10:38:30 (16 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:
3d4d52d
Parents:
880aa58
Message:

Get rid of ->sourcetype, it was never used.
Cleanup some of the wag stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r880aa58 rf03fc17  
    168168        if (S_ISCHR(buf.st_mode)) {
    169169                /* DEVICE */
    170                 libtrace->sourcetype = TRACE_SOURCE_DEVICE;
    171170                if((INPUT.fd = dag_open(CONNINFO.path)) < 0) {
    172171                        trace_set_err(errno,"Cannot open DAG %s",
     
    219218        if (!strncmp(CONNINFO.path,"-",1)) {
    220219                /* STDIN */
    221                 libtrace->sourcetype = TRACE_SOURCE_STDIN;
    222220                INPUT.file = LIBTRACE_FDOPEN(fileno(stdin), "r");
    223221        } else {
     
    228226                }
    229227                if (S_ISSOCK(buf.st_mode)) {
    230                         libtrace->sourcetype = TRACE_SOURCE_SOCKET;
    231228                        if ((INPUT.fd = socket(
    232229                                        AF_UNIX, SOCK_STREAM, 0)) == -1) {
     
    251248                        int fd;
    252249
    253                         libtrace->sourcetype = TRACE_SOURCE_TRACE;
    254250
    255251                        /* we use an FDOPEN call to reopen an FD
     
    279275                malloc(sizeof(struct libtrace_format_data_t));
    280276
    281         libtrace->sourcetype = TRACE_SOURCE_RT;
    282277
    283278        if (strlen(uridata) == 0) {
Note: See TracChangeset for help on using the changeset viewer.