[yast-commit] r57367 - in /trunk/core: VERSION liby2util-r/src/y2log.cc libycp/src/StaticDeclaration.cc package/yast2-core.changes
Author: mvidner
Date: Mon Jun 1 08:54:39 2009
New Revision: 57367
URL: http://svn.opensuse.org/viewcvs/yast?rev=57367&view=rev
Log:
Fixed char* constness for glibc-2.10.
http://lists.opensuse.org/opensuse-packaging/2009-06/msg00000.html
Modified:
trunk/core/VERSION
trunk/core/liby2util-r/src/y2log.cc
trunk/core/libycp/src/StaticDeclaration.cc
trunk/core/package/yast2-core.changes
Modified: trunk/core/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=57367&r1=57366&r2=57367&view=diff
==============================================================================
--- trunk/core/VERSION (original)
+++ trunk/core/VERSION Mon Jun 1 08:54:39 2009
@@ -1 +1 @@
-2.18.10
+2.18.11
Modified: trunk/core/liby2util-r/src/y2log.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/liby2util-r/src/y2log.cc?rev=57367&r1=57366&r2=57367&view=diff
==============================================================================
--- trunk/core/liby2util-r/src/y2log.cc (original)
+++ trunk/core/liby2util-r/src/y2log.cc Mon Jun 1 08:54:39 2009
@@ -199,10 +199,10 @@
/* Prepare the file, strip rooted path */
if(*file == '/') // rooted path
{
- char *slashptr = strrchr (file, '/');
+ const char *slashptr = strrchr (file, '/');
if (slashptr > file) // last slash is second slash
{
- char *slashptr2 = slashptr-1;
+ const char *slashptr2 = slashptr-1;
// find last but one slash
Modified: trunk/core/libycp/src/StaticDeclaration.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/StaticDeclaration.cc?rev=57367&r1=57366&r2=57367&view=diff
==============================================================================
--- trunk/core/libycp/src/StaticDeclaration.cc (original)
+++ trunk/core/libycp/src/StaticDeclaration.cc Mon Jun 1 08:54:39 2009
@@ -282,7 +282,8 @@
#endif
// split the name by the namespace
- char *next = strstr (name, "::");
+ char *next = const_cast
participants (1)
-
mvidner@svn.opensuse.org