Changeset 1433ecda in mainline for uspace/app/wavplay/main.c
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
-
uspace/app/wavplay/main.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/wavplay/main.c
r47b2d7e3 r1433ecda 89 89 90 90 /* Allocate buffer and create new context */ 91 char * buffer = malloc(READ_SIZE);91 char *buffer = malloc(READ_SIZE); 92 92 if (!buffer) { 93 93 fclose(source); … … 211 211 */ 212 212 static const struct option opts[] = { 213 { "device", required_argument, 0, 'd'},214 { "parallel", no_argument, 0, 'p'},215 { "record", no_argument, 0, 'r'},216 { "help", no_argument, 0, 'h'},217 { 0, 0, 0, 0}213 { "device", required_argument, 0, 'd' }, 214 { "parallel", no_argument, 0, 'p' }, 215 { "record", no_argument, 0, 'r' }, 216 { "help", no_argument, 0, 'h' }, 217 { 0, 0, 0, 0 } 218 218 }; 219 219 … … 222 222 * @param name Name of the program. 223 223 */ 224 static void print_help(const char *name)224 static void print_help(const char *name) 225 225 { 226 226 printf("Usage: %s [options] file [files...]\n", name); … … 293 293 if (ret != EOK) { 294 294 printf("Failed to connect hound context to default " 295 "target.\n");295 "target.\n"); 296 296 hound_context_destroy(hound_ctx); 297 297 return 1; … … 324 324 if (!data) { 325 325 printf("Playback of %s failed.\n", 326 file);326 file); 327 327 continue; 328 328 }
Note:
See TracChangeset
for help on using the changeset viewer.
