Mercurial > hg > audiodb
diff soap.cpp @ 345:30384a82983a
Quieten newer compilers with MORE CONST CORRECTNESS.
(except, haha, gengetopt doesn't generate const-correct function
prototypes. Happy happy joy joy. Put in an explicit cast when calling
cmdline_parser().)
Adjust gengetopt.in and Makefile to support both old (2.19) and new
(2.22) versions of gengetopt. This only really means that we've lost -H
as a help switch; --help still works.
author | mas01cr |
---|---|
date | Wed, 08 Oct 2008 11:06:11 +0000 |
parents | cdb31e8b94e3 |
children | 75a59f58319e 4871a3ed9e36 |
line wrap: on
line diff
--- a/soap.cpp Tue Oct 07 21:03:26 2008 +0000 +++ b/soap.cpp Wed Oct 08 11:06:11 2008 +0000 @@ -143,7 +143,7 @@ /* Server definitions */ int adb__status(struct soap* soap, xsd__string dbName, adb__statusResponse &adbStatusResponse){ - char* const argv[]={"./audioDB",COM_STATUS,"-d",dbName}; + const char *const argv[]={"./audioDB",COM_STATUS,"-d",dbName}; const unsigned argc = 4; try { audioDB(argc, argv, &adbStatusResponse); @@ -160,7 +160,7 @@ INTSTRINGIFY(lisztOffset, lisztOffsetStr); INTSTRINGIFY(lisztLength, lisztLengthStr); - char* const argv[] = {"./audioDB", COM_LISZT, "-d",dbName, "--lisztOffset", lisztOffsetStr, "--lisztLength", lisztLengthStr}; + const char* const argv[] = {"./audioDB", COM_LISZT, "-d",dbName, "--lisztOffset", lisztOffsetStr, "--lisztLength", lisztLengthStr}; const unsigned argc = 8; try{ audioDB(argc, argv, &adbLisztResponse); @@ -237,7 +237,7 @@ argc++; } - char **argv = new char*[argc+1]; + const char **argv = new const char*[argc+1]; argv[0] = "./audioDB"; argv[1] = COM_QUERY; argv[2] = queryType;