diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-08-01 12:07:32 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-08-01 12:07:32 +0200 |
commit | a95438527f2db7a1535ce679edde004b982dba60 (patch) | |
tree | c2292f54640607258665738f0f05985a72dd6c84 | |
parent | 3a9fa704ddfc13f7a6f9d73ffd9f069b856b815e (diff) | |
download | dabmux-a95438527f2db7a1535ce679edde004b982dba60.tar.gz dabmux-a95438527f2db7a1535ce679edde004b982dba60.tar.bz2 dabmux-a95438527f2db7a1535ce679edde004b982dba60.zip |
Remove some warnings, correct minor error message text
-rw-r--r-- | src/ParserCmdline.cpp | 17 | ||||
-rw-r--r-- | src/dabInput.h | 2 |
2 files changed, 17 insertions, 2 deletions
diff --git a/src/ParserCmdline.cpp b/src/ParserCmdline.cpp index 9d46bf4..98140de 100644 --- a/src/ParserCmdline.cpp +++ b/src/ParserCmdline.cpp @@ -109,7 +109,20 @@ bool parse_cmdline(char **argv, vector<DabService*>::iterator service = ensemble->services.end(); dabProtection* protection = NULL; - dabInputOperations operations; + // Yes, this is ugly, but it suppresses warnings + dabInputOperations operations = { + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + }; // Default ensemble parameters: ensemble->lto = 0; @@ -566,7 +579,7 @@ bool parse_cmdline(char **argv, int level; if (optarg == NULL) { etiLog.log(error, - "Missing parameter for option -P\n"); + "Missing parameter for option -p\n"); printUsage(progName); goto EXIT; } diff --git a/src/dabInput.h b/src/dabInput.h index fb64459..f1b4348 100644 --- a/src/dabInput.h +++ b/src/dabInput.h @@ -31,6 +31,8 @@ extern Logger etiLog; +// TODO replace usage of dabInputOperations by a +// class hierarchy struct dabInputOperations { int (*init)(void** args); int (*open)(void* args, const char* name); |