diff 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
line wrap: on
line diff
--- a/audioDB.cpp	Thu Oct 22 12:51:04 2009 +0000
+++ b/audioDB.cpp	Tue Oct 27 17:48:55 2009 +0000
@@ -178,7 +178,7 @@
   /* KLUDGE: gengetopt generates a function which is not completely
      const-clean in its declaration.  We cast argv here to keep the
      compiler happy.  -- CSR, 2008-10-08 */
-  if (cmdline_parser (argc, (char *const *) argv, &args_info) != 0)
+  if (cmdline_parser (argc, (char **) argv, &args_info) != 0)
     error("Error parsing command line");
     
   if(argc<2){