Skip to content
Snippets Groups Projects
Commit b44560be authored by Rene Brun's avatar Rene Brun
Browse files

Fix the usual problem with strstr on Solaris. A statement like

  char *s = strstr(...
is not legal, strstr returning a const char*. One must cast:
  char *s = (char*)strstr(...


git-svn-id: http://root.cern.ch/svn/root/trunk@3793 27541ba8-7e3a-0410-8455-c3a389f83636
parent fbdce762
No related branches found
No related tags found
No related merge requests found
// @(#)root/base:$Name: $:$Id: TPluginManager.cxx,v 1.1 2002/01/27 13:53:35 rdm Exp $
// @(#)root/base:$Name: $:$Id: TPluginManager.cxx,v 1.2 2002/01/27 15:53:40 rdm Exp $
// Author: Fons Rademakers 26/1/2002
/*************************************************************************
......@@ -125,7 +125,7 @@ void TPluginManager::LoadHandlersFromEnv(TEnv *env)
while ((er = (TEnvRec*) next())) {
char *s;
if ((s = strstr(er->GetName(), "Plugin."))) {
if ((s = (char*)strstr(er->GetName(), "Plugin."))) {
const char *val = env->GetValue(er->GetName(), (const char*)0);
if (val) {
Int_t cnt = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment