Comment 18 for bug 1905159

Revision history for this message
Jerzy Tarasiuk (tarasiukj) wrote :

modules/ca/src/client/caRepeater.cpp line 93
- a chdir("/"); alone causes a warning;
  an old construction (void)chdir("/"); caused a warning, too;
  to avoid the warning, need use: if(chdir("/")) {} ;)

modules/database/src/ioc/dbtemplate/msi.cpp line 306
- signed/unsigned comparision: maybe declare 'i' as unsigned?
  as an array index unsigned is OK, maybe need use typecast:
  cmdind = i; => cmdint = (int)i; (the cmdint must be int)
an alternative can be a code like:
  for (cmdint = NELEMENTS(cmdNames); cmdint >=0; cmdint--) {
    if (strstr(command, cmdNames[cmdint])) break;
  }