]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for gcc 4.4
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jun 2009 08:22:42 +0000 (08:22 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jun 2009 08:22:42 +0000 (08:22 +0000)
STEER/AliLog.cxx

index 3835c8483ac3a61f3ad4449ad8ed05b974d5a525..025852d202a91a4874cb4d36506385c8fdc7fb44 100644 (file)
@@ -191,7 +191,7 @@ void AliLog::ReadEnvSettings()
     char* p = const_cast<char*>(levels.Data());
     while (const char* module = strtok(p, " ")) {
       p = NULL;
-      char* pos = index(module, ':');
+      char* pos = const_cast<char*>(index(module, ':'));
       if (!pos) continue;
       *(pos++) = '\0';
       Int_t level = atoi(pos);
@@ -206,7 +206,7 @@ void AliLog::ReadEnvSettings()
     char* p = const_cast<char*>(levels.Data());
     while (const char* className = strtok(p, " ")) {
       p = NULL;
-      char* pos = index(className, ':');
+      char* pos = const_cast<char*>(index(className, ':'));
       if (!pos) continue;
       *(pos++) = '\0';
       Int_t level = atoi(pos);