|
From: <bul...@us...> - 2013-05-27 02:04:19
|
Revision: 22771
http://sourceforge.net/p/bzflag/code/22771
Author: bullet_catcher
Date: 2013-05-27 02:04:17 +0000 (Mon, 27 May 2013)
Log Message:
-----------
Remove "const" from the modifiable array of bzfs options.
Modified Paths:
--------------
trunk/bzflag/src/bzfs/CmdLineOptions.cxx
Modified: trunk/bzflag/src/bzfs/CmdLineOptions.cxx
===================================================================
--- trunk/bzflag/src/bzfs/CmdLineOptions.cxx 2013-05-26 23:35:00 UTC (rev 22770)
+++ trunk/bzflag/src/bzfs/CmdLineOptions.cxx 2013-05-27 02:04:17 UTC (rev 22771)
@@ -497,12 +497,12 @@
exit(1);
}
- const char **av = new const char*[tokens.size()+1];
+ char **av = new char*[tokens.size()+1];
av[0] = strdup("bzfs");
ac = 1;
for (std::vector<std::string>::iterator it = tokens.begin(); it != tokens.end(); ++it)
av[ac++] = strdup((*it).c_str());
- return (char **)av;
+ return av;
}
static char **parseWorldOptions (const char *file, int &ac)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|