Author: mlandres
Date: Wed Oct 22 11:02:57 2008
New Revision: 11436
URL: http://svn.opensuse.org/viewcvs/zypp?rev=11436&view=rev
Log:
fix g++ warning
Modified:
trunk/libzypp/tests/lib/WebServer.cc
Modified: trunk/libzypp/tests/lib/WebServer.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/lib/WebServer.cc?rev=11436&r1=11435&r2=11436&view=diff
==============================================================================
--- trunk/libzypp/tests/lib/WebServer.cc (original)
+++ trunk/libzypp/tests/lib/WebServer.cc Wed Oct 22 11:02:57 2008
@@ -19,11 +19,11 @@
static shttpd_ctx * do_init_ctx()
{
- static char *argv[] = {"a", "-ports", LISTENING_PORT, NULL};
+ static const char *argv[] = {"a", "-ports", LISTENING_PORT, NULL};
static int argc = sizeof(argv) / sizeof(argv[0]) - 1;
shttpd_ctx *ctx;
- ctx = shttpd_init(argc, argv);
+ ctx = shttpd_init(argc, const_cast