Changeset 516
- Timestamp:
- 11/24/05 14:28:08 (7 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 edited
-
format_erf.c (modified) (2 diffs)
-
format_wag.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_erf.c
r515 r516 269 269 // STDIN 270 270 libtrace->sourcetype = STDIN; 271 if ((INPUT.file = LIBTRACE_FDOPEN( stdin, "r")) < 0) {271 if ((INPUT.file = LIBTRACE_FDOPEN(fileno(stdin), "r")) < 0) { 272 272 perror("libtrace_fdopen:"); 273 273 return 0; … … 382 382 if (!strncmp(libtrace->uridata,"-",1)) { 383 383 // STDOUT 384 OUTPUT.file = LIBTRACE_FDOPEN( stdout,filemode);384 OUTPUT.file = LIBTRACE_FDOPEN(fileno(stdout),filemode); 385 385 } 386 386 else { -
trunk/lib/format_wag.c
r514 r516 30 30 31 31 #define _GNU_SOURCE 32 #include "config.h" 33 #include "common.h" 32 34 #include "libtrace.h" 33 35 #include "libtrace_int.h" 34 36 #include "format_helper.h" 35 37 #include "wag.h" 36 #include "config.h"37 38 38 39 #ifdef HAVE_INTTYPES_H … … 63 64 #include <stdlib.h> 64 65 65 /*66 #if HAVE_ZLIB67 # include <zlib.h>68 # define LIBTRACE_READ gzread69 # define LIBTRACE_FDOPEN gzdopen70 # define LIBTRACE_CLOSE gzclose71 # define LIBTRACE_WRITE gzwrite72 #else73 # define LIBTRACE_READ read74 # define LIBTRACE_FDOPEN open75 # define LIBTRACE_CLOSE close76 # define LIBTRACE_WRITE write77 #endif78 */79 66 #ifdef HAVE_LIMITS_H 80 67 # include <limits.h> … … 146 133 // STDIN 147 134 libtrace->sourcetype = STDIN; 148 INPUT.file = LIBTRACE_FDOPEN( STDIN,"r");135 INPUT.file = LIBTRACE_FDOPEN(fileno(stdin),"r"); 149 136 150 137 } else {
Note: See TracChangeset
for help on using the changeset viewer.
