Changeset 1567
- Timestamp:
- 01/26/10 04:21:47 (6 months ago)
- Location:
- trunk/batctl
- Files:
-
- 2 modified
-
functions.c (modified) (2 diffs)
-
sys.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/batctl/functions.c
r1511 r1567 36 36 #include "bat-hosts.h" 37 37 38 #define BATMAN_ADV_TAG "batman-adv:" 38 39 39 40 static struct timeval start_time; … … 179 180 break; 180 181 182 if (read_opt & LOG_MODE) { 183 /* omit log lines which don't start with the correct tag */ 184 if (strncmp(line_ptr, BATMAN_ADV_TAG, strlen(BATMAN_ADV_TAG)) != 0) 185 continue; 186 } 187 181 188 if (!(read_opt & USE_BAT_HOSTS)) { 182 189 printf("%s", line_ptr); -
trunk/batctl/sys.c
r1560 r1567 69 69 return read_file("", argv[found_args], read_opt); 70 70 else 71 return read_file("", "/ dev/stdin", read_opt);71 return read_file("", "/proc/self/fd/0", read_opt); 72 72 } 73 73
