Changeset 799 for trunk/lib/format_wag.c
- Timestamp:
- 05/12/06 17:07:59 (7 years ago)
- File:
-
- 1 edited
-
trunk/lib/format_wag.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_wag.c
r782 r799 105 105 if (S_ISCHR(buf.st_mode)) { 106 106 INPUT.fd = open(libtrace->uridata, O_RDONLY); 107 if (ioctl (INPUT.fd, CAPTURE_RADIOON, 0) == -1) { 108 trace_set_err(libtrace, errno, 109 "Could not turn WAG radio on"); 110 return -1; 111 } 107 112 return 0; 108 113 } … … 179 184 static int wag_pause_input(libtrace_t *libtrace) 180 185 { 186 if (ioctl (INPUT.fd, CAPTURE_RADIOON, 0) == -1) { 187 trace_set_err(libtrace, errno, 188 "Could not turn WAG radio off"); 189 } 181 190 close(INPUT.fd); 182 191 return 0; … … 184 193 185 194 static int wag_fin_input(libtrace_t *libtrace) { 195 ioctl (INPUT.fd, CAPTURE_RADIOON, 0); 186 196 free(libtrace->format_data); 187 197 return 0;
Note: See TracChangeset
for help on using the changeset viewer.
