comparison audioDB.cpp @ 655:2a97f3f9a6ac

Rework the audioDB binary / gengetopt command-line parsing glue For cygwin 1.7 / gengetopt 2.22.3, not even the minor constness in the cmdline_parser() call passes muster. Just cast to (char **) and const be damned.
author mas01cr
date Tue, 27 Oct 2009 17:48:55 +0000
parents 82d23418d867
children 536cfa209e7f
comparison
equal deleted inserted replaced
654:828c1c4e25cc 655:2a97f3f9a6ac
176 int audioDB::processArgs(const unsigned argc, const char *argv[]){ 176 int audioDB::processArgs(const unsigned argc, const char *argv[]){
177 177
178 /* KLUDGE: gengetopt generates a function which is not completely 178 /* KLUDGE: gengetopt generates a function which is not completely
179 const-clean in its declaration. We cast argv here to keep the 179 const-clean in its declaration. We cast argv here to keep the
180 compiler happy. -- CSR, 2008-10-08 */ 180 compiler happy. -- CSR, 2008-10-08 */
181 if (cmdline_parser (argc, (char *const *) argv, &args_info) != 0) 181 if (cmdline_parser (argc, (char **) argv, &args_info) != 0)
182 error("Error parsing command line"); 182 error("Error parsing command line");
183 183
184 if(argc<2){ 184 if(argc<2){
185 cmdline_parser_print_version (); 185 cmdline_parser_print_version ();
186 if (strlen(gengetopt_args_info_purpose) > 0) 186 if (strlen(gengetopt_args_info_purpose) > 0)