Changeset 79dbcef for lib/format_erf.c


Ignore:
Timestamp:
11/24/05 14:28:08 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
85418c7
Parents:
9cecdb2
Message:

wrapped stdin and stdout in fileno() when passing to LIBTRACE_FDOPEN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r9cecdb2 r79dbcef  
    269269                // STDIN
    270270                libtrace->sourcetype = STDIN;
    271                 if ((INPUT.file = LIBTRACE_FDOPEN(stdin, "r")) < 0) {
     271                if ((INPUT.file = LIBTRACE_FDOPEN(fileno(stdin), "r")) < 0) {
    272272                        perror("libtrace_fdopen:");
    273273                        return 0;
     
    382382        if (!strncmp(libtrace->uridata,"-",1)) {
    383383                // STDOUT
    384                 OUTPUT.file = LIBTRACE_FDOPEN(stdout,filemode);
     384                OUTPUT.file = LIBTRACE_FDOPEN(fileno(stdout),filemode);
    385385        }
    386386        else {
Note: See TracChangeset for help on using the changeset viewer.