From 7b34eeaf4ed9769398afd7a386b5a1b5ea7b6e64 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 6 Jul 2015 22:41:42 +1200 Subject: Migration of stuff to misc.c --- cue-bin-split.c | 42 ++++++------------------------------------ 1 file changed, 6 insertions(+), 36 deletions(-) (limited to 'cue-bin-split.c') diff --git a/cue-bin-split.c b/cue-bin-split.c index 9092bc5..70de27f 100644 --- a/cue-bin-split.c +++ b/cue-bin-split.c @@ -33,22 +33,6 @@ #include "cue-bin-split.h" #include "misc.h" - -/* FIXME move me */ -void die_help() -{ - fprintf(stderr, - "\n" - "Options: \n" - " -r bitrate_Hz\n" - " -c channel_count\n" - " -i input_file\n" - " -s size of a single channel's sample (bytes)\n" - " -f name_format (%%d and co are replaced with track number)\n" - ); - exit(EXIT_FAILURE); -} - int main(int argc, char **argv) { /* File handles */ @@ -85,26 +69,12 @@ int main(int argc, char **argv) { switch (opt) { - case 'r': - rate = atoi(optarg); - break; - - case 'c': - channels = atoi(optarg); - break; - - case 'i': - in_fname = optarg; - break; - - case 's': - sample_size = atoi(optarg); - break; - - case 'f': - format = optarg; - break; - + case 'r': rate = atoi(optarg); break; + case 'c': channels = atoi(optarg); break; + case 's': sample_size = atoi(optarg); break; + case 'i': in_fname = optarg; break; + case 'f': format = optarg; break; + case '?': default: die_help(); -- cgit v1.1