---

** [tickets:#2384] tools: IMM/tools/apitest fix all Cppcheck 1.77 issues**

**Status:** assigned
**Milestone:** next
**Created:** Fri Mar 17, 2017 04:57 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Mar 17, 2017 04:57 AM UTC
**Owner:** A V Mahesh (AVM)


[src/imm/agent/imma_db.cc:264]: (style) C-style pointer casting

[src/imm/apitest/immtest.c:151] -> [src/imm/apitest/immtest.c:184]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/immtest.c:236] -> [src/imm/apitest/immtest.c:252]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/implementer/applier.c:340]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[src/imm/apitest/implementer/applier.c:202]: (style) The scope of the variable 
'c' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:307]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:415]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:474]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:523]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:618]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:696]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:763]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:848]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:932]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiAdminOperation.c:1017]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_SaImmOiCcb.c:175]: (style) The scope of the 
variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiCcb.c:228]: (style) The scope of the 
variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_SaImmOiRtAttrUpdateCallbackT.c:55] -> 
[src/imm/apitest/implementer/test_SaImmOiRtAttrUpdateCallbackT.c:82]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:368]: (style) 
The scope of the variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:424]: (style) 
The scope of the variable 'ret' can be reduced.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:491]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:512]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:574]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:593]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:660]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:665]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:683]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:750]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:755]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiAugmentCcbInitialize.c:775]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiImplementerSet.c:108]: (style) The 
scope of the variable 'rc' can be reduced.
[src/imm/apitest/implementer/test_saImmOiImplementerSet.c:188]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiImplementerSet.c:240]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiImplementerSet.c:291]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiImplementerSet.c:331]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:167]: (style) The scope of 
the variable 'rc' can be reduced.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:218]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:281]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:335]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:386]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:434]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiLongDn.c:513]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:243]: (style) The scope of 
the variable 'rc' can be reduced.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:1006]: (style) Variable 
'paramVal' is assigned a value that is never used.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:341]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:396]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:451]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:510]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:570]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:630]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:684]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:740]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:796]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:840]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:873]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:907]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:951]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/implementer/test_saImmOiSaStringT.c:1026]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/management/populate.c:155]: (warning) %u in format string (no. 
2) requires 'unsigned int' but the argument type is 'int'.
[src/imm/apitest/management/populate.c:124]: (warning) Possible null pointer 
dereference: rootObj
[src/imm/apitest/management/populate.c:183]: (style) Obsolescent function 
'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/apitest/management/populate.c:220]: (style) Obsolescent function 
'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/apitest/management/test_saImmOmCcbApply.c:168]: (style) Suspicious 
condition (assignment + comparison); Clarify expression with parentheses.
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1040] -> 
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1047]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1047] -> 
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1048]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1059] -> 
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1078]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1078] -> 
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1079]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1090] -> 
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1104]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1104] -> 
[src/imm/apitest/management/test_saImmOmCcbObjectModify_2.c:1105]: (style) 
Variable 'err' is reassigned a value before the old one has been used.
[src/imm/apitest/management/test_saImmOmLongDn.c:247]: (style) The scope of the 
variable 'i' can be reduced.
[src/imm/apitest/management/test_saImmOmLongDn.c:291]: (style) The scope of the 
variable 'i' can be reduced.
[src/imm/apitest/management/test_saImmOmLongDn.c:292]: (style) The scope of the 
variable 'score' can be reduced.
[src/imm/apitest/management/test_saImmOmSaStringT.c:75]: (style) The scope of 
the variable 'rc' can be reduced.
[src/imm/apitest/management/test_saImmOmSaStringT.c:362]: (style) Obsolescent 
function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' 
instead.
[src/imm/apitest/management/test_saImmOmSearchInitialize_2.c:121]: (style) 
Variable 'count' is modified but its new value is never used.
[src/imm/apitest/management/test_saImmOmThreadInterference.c:49]: (style) The 
scope of the variable 'ret' can be reduced.
[src/imm/apitest/management/test_saImmOmThreadInterference.c:39]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/management/test_saImmOmThreadInterference.c:129]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/management/test_saImmOmThreadInterference.c:137]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/management/test_saImmOmThreadInterference.c:159]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/apitest/management/test_saImmOmThreadInterference.c:173]: (style) 
Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 
'setitimer' instead.
[src/imm/common/immpbe_dump.cc:3764]: (performance) Function parameter 
'localTmpFilename' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3769]: (performance) Function parameter 
'localTmpFilename' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3786]: (performance) Function parameter 
'className' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3793]: (performance) Function parameter 
'className' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3804]: (performance) Function parameter 
'classNameString' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3813]: (performance) Function parameter 
'classNameString' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3852]: (performance) Function parameter 
'objectNameString' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3857]: (performance) Function parameter 
'objName' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3863]: (performance) Function parameter 
'objName' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3869]: (performance) Function parameter 
'objName' should be passed by reference.
[src/imm/common/immpbe_dump.cc:3875]: (performance) Function parameter 
'objectNameString' should be passed by reference.
[src/imm/common/immpbe_dump.cc:471] -> [src/imm/common/immpbe_dump.cc:480]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[src/imm/common/immpbe_dump.cc:844] -> [src/imm/common/immpbe_dump.cc:854]: 
(style) Variable 'rc' is reassigned a value before the old one has been used.
[src/imm/common/immpbe_dump.cc:3123] -> [src/imm/common/immpbe_dump.cc:3126]: 
(style) Variable 'fd' is reassigned a value before the old one has been used.
[src/imm/common/immpbe_dump.cc:161]: (style) The scope of the variable 'rc' can 
be reduced.
[src/imm/common/immpbe_dump.cc:245]: (style) The scope of the variable 
'attr_is_pure_rt' can be reduced.
[src/imm/common/immpbe_dump.cc:246]: (style) The scope of the variable 
'attr_is_multi' can be reduced.
[src/imm/common/immpbe_dump.cc:2013]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/common/immpbe_dump.cc:2091]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/common/immpbe_dump.cc:2625]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/common/immpbe_dump.cc:2746]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/common/immpbe_dump.cc:2903]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/common/immpbe_dump.cc:2500]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[src/imm/common/immpbe_dump.cc:2555]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[src/imm/common/immpbe_dump.cc:2804]: (performance) Prefer prefix ++/-- 
operators for non-primitive types.
[src/imm/common/immsv_evt.c:1295]: (style) The scope of the variable 'os' can 
be reduced.
[src/imm/common/immsv_evt.c:1337]: (style) The scope of the variable 'depth' 
can be reduced.
[src/imm/common/immsv_evt.c:1901]: (style) The scope of the variable 'depth' 
can be reduced.
[src/imm/common/immsv_evt.c:1978]: (style) The scope of the variable 'c8' can 
be reduced.
[src/imm/common/immsv_evt.c:1981]: (style) The scope of the variable 'os' can 
be reduced.
[src/imm/immd/immd_proc.c:561]: (style) Obsolescent function 'usleep' called. 
It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:2240] -> [src/imm/immloadd/imm_loader.cc:2251]: 
(style, inconclusive) Variable 'errorCode' is reassigned a value before the old 
one has been used if variable is no semaphore variable.
[src/imm/immloadd/imm_loader.cc:224]: (style) The scope of the variable 'ch4' 
can be reduced.
[src/imm/immloadd/imm_loader.cc:1749]: (style) The scope of the variable 
'value' can be reduced.
[src/imm/immloadd/imm_loader.cc:385]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:436]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:490]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:612]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:717]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:2541]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_loader.cc:2601]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_pbe_load.cc:1115] -> 
[src/imm/immloadd/imm_pbe_load.cc:1117]: (style, inconclusive) Variable 
'errorCode' is reassigned a value before the old one has been used if variable 
is no semaphore variable.
[src/imm/immloadd/imm_pbe_load.cc:1066]: (performance) Function parameter 'dir' 
should be passed by reference.
[src/imm/immloadd/imm_pbe_load.cc:1066]: (performance) Function parameter 
'file' should be passed by reference.
[src/imm/immloadd/imm_pbe_load.cc:250]: (warning) %u in format string (no. 1) 
requires 'unsigned int' but the argument type is 'signed int'.
[src/imm/immloadd/imm_pbe_load.cc:775]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_pbe_load.cc:1023]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immloadd/imm_pbe_load.cc:545]: (error) Common realloc mistake: 'val' 
nulled but not freed upon failure
[src/imm/immloadd/imm_pbe_load.cc:640]: (error) Common realloc mistake: 'val' 
nulled but not freed upon failure
[src/imm/immnd/ImmAttrValue.cc:217]: (style) Obsolescent function 'bcmp' 
called. It is recommended to use 'memcmp' instead.
[src/imm/immnd/ImmAttrValue.cc:228]: (style) Obsolescent function 'bcmp' 
called. It is recommended to use 'memcmp' instead.
[src/imm/immnd/ImmAttrValue.cc:334]: (style) Obsolescent function 'bcmp' 
called. It is recommended to use 'memcmp' instead.
[src/imm/immnd/ImmAttrValue.cc:367]: (style) Obsolescent function 'bcmp' 
called. It is recommended to use 'memcmp' instead.
[src/imm/immnd/ImmModel.cc:2352] -> [src/imm/immnd/ImmModel.cc:2356]: (style, 
inconclusive) Variable 'err' is reassigned a value before the old one has been 
used if variable is no semaphore variable.
[src/imm/immnd/ImmModel.cc:352]: (style, inconclusive) Technically the member 
function 'CcbInfo::isOk' can be const.
[src/imm/immnd/ImmModel.cc:353]: (style, inconclusive) Technically the member 
function 'CcbInfo::isActive' can be const.
[src/imm/immnd/immnd_evt.c:769]: (portability) Non reentrant function 
'getpwuid' called. For threadsafe applications it is recommended to use the 
reentrant replacement function 'getpwuid_r'.
[src/imm/immnd/immnd_evt.c:777]: (portability) Non reentrant function 
'getpwuid' called. For threadsafe applications it is recommended to use the 
reentrant replacement function 'getpwuid_r'.
[src/imm/immnd/immnd_evt.c:3269]: (portability) Non reentrant function 
'getpwuid' called. For threadsafe applications it is recommended to use the 
reentrant replacement function 'getpwuid_r'.
[src/imm/immnd/immnd_evt.c:3287]: (portability) Non reentrant function 
'getpwuid' called. For threadsafe applications it is recommended to use the 
reentrant replacement function 'getpwuid_r'.
[src/imm/immnd/immnd_evt.c:3590]: (portability) Non reentrant function 
'getpwuid' called. For threadsafe applications it is recommended to use the 
reentrant replacement function 'getpwuid_r'.
[src/imm/immnd/immnd_main.c:186]: (warning, inconclusive) Width 15 given in 
format string (no. 1) is smaller than destination buffer 'node_type[20]'.
[src/imm/immnd/immnd_proc.c:48]: (style) Assignment of function parameter has 
no effect outside the function.
[src/imm/immpbed/immpbe.cc:315]: (style) Obsolescent function 'usleep' called. 
It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:454] -> 
[src/imm/immpbed/immpbe_daemon.cc:461]: (style, inconclusive) Variable 'rc2B' 
is reassigned a value before the old one has been used if variable is no 
semaphore variable.
[src/imm/immpbed/immpbe_daemon.cc:670] -> 
[src/imm/immpbed/immpbe_daemon.cc:677]: (style, inconclusive) Variable 'rc2B' 
is reassigned a value before the old one has been used if variable is no 
semaphore variable.
[src/imm/immpbed/immpbe_daemon.cc:796] -> 
[src/imm/immpbed/immpbe_daemon.cc:802]: (style, inconclusive) Variable 'rc2B' 
is reassigned a value before the old one has been used if variable is no 
semaphore variable.
[src/imm/immpbed/immpbe_daemon.cc:900] -> 
[src/imm/immpbed/immpbe_daemon.cc:904]: (style, inconclusive) Variable 'rc2B' 
is reassigned a value before the old one has been used if variable is no 
semaphore variable.
[src/imm/immpbed/immpbe_daemon.cc:975] -> 
[src/imm/immpbed/immpbe_daemon.cc:979]: (style, inconclusive) Variable 'rc2B' 
is reassigned a value before the old one has been used if variable is no 
semaphore variable.
[src/imm/immpbed/immpbe_daemon.cc:314]: (style) Consecutive return, break, 
continue, goto or throw statements are unnecessary.
[src/imm/immpbed/immpbe_daemon.cc:560]: (style) The scope of the variable 
'obj_count' can be reduced.
[src/imm/immpbed/immpbe_daemon.cc:565]: (style) Checking if unsigned variable 
'obj_count' is less than zero.
[src/imm/immpbed/immpbe_daemon.cc:264]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:491]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:707]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:836]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:1241]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:1516]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:1683]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:1973]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:1996]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:2008]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:2021]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:2048]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:2082]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:2100]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/immpbed/immpbe_daemon.cc:1118]: (error) Common realloc mistake: 
'rparams' nulled but not freed upon failure
[src/imm/immpbed/immpbe_daemon.cc:1136]: (error) Common realloc mistake: 
'rparams' nulled but not freed upon failure
[src/imm/tools/imm_admin.c:128]: (portability) Non reentrant function 'strtok' 
called. For threadsafe applications it is recommended to use the reentrant 
replacement function 'strtok_r'.
[src/imm/tools/imm_admin.c:140]: (portability) Non reentrant function 'strtok' 
called. For threadsafe applications it is recommended to use the reentrant 
replacement function 'strtok_r'.
[src/imm/tools/imm_admin.c:153]: (portability) Non reentrant function 'strtok' 
called. For threadsafe applications it is recommended to use the reentrant 
replacement function 'strtok_r'.
[src/imm/tools/imm_admin.c:202]: (style) Obsolescent function 'ctime_r' called. 
It is recommended to use 'strftime' instead.
[src/imm/tools/imm_admin.c:315]: (error) Common realloc mistake: 'params' 
nulled but not freed upon failure
[src/imm/tools/imm_admin.c:327]: (error) Common realloc mistake: 'params' 
nulled but not freed upon failure
[src/imm/tools/imm_cfg.c:400] -> [src/imm/tools/imm_cfg.c:403]: (style) 
Variable 'attrValue' is reassigned a value before the old one has been used.
[src/imm/tools/imm_cfg.c:201]: (style) The scope of the variable 'i' can be 
reduced.
[src/imm/tools/imm_cfg.c:215]: (style) The scope of the variable 'i' can be 
reduced.
[src/imm/tools/imm_cfg.c:1136]: (style) The scope of the variable 'len' can be 
reduced.
[src/imm/tools/imm_cfg.c:861]: (error) Memory leak: unique_adminOwner
[src/imm/tools/imm_dumper.cc:88]: (style) The scope of the variable 'c' can be 
reduced.
[src/imm/tools/imm_dumper.cc:125]: (style) The scope of the variable 'objCount' 
can be reduced.
[src/imm/tools/imm_find.c:92]: (style) The scope of the variable 'c' can be 
reduced.
[src/imm/tools/imm_import.cc:932]: (style) Consecutive return, break, continue, 
goto or throw statements are unnecessary.
[src/imm/tools/imm_import.cc:942]: (style) Consecutive return, break, continue, 
goto or throw statements are unnecessary.
[src/imm/tools/imm_import.cc:370]: (style) The scope of the variable 'ch4' can 
be reduced.
[src/imm/tools/imm_import.cc:1000]: (style) The scope of the variable 'i' can 
be reduced.
[src/imm/tools/imm_import.cc:1059]: (style) The scope of the variable 
'new_attrDef' can be reduced.
[src/imm/tools/imm_import.cc:1059]: (style) The scope of the variable 
'existing_attrDef' can be reduced.
[src/imm/tools/imm_import.cc:1356]: (style) The scope of the variable 'value' 
can be reduced.
[src/imm/tools/imm_import.cc:2149]: (style) The scope of the variable 'len' can 
be reduced.
[src/imm/tools/imm_import.cc:2354]: (style) Unused variable: classIt
[src/imm/tools/imm_import.cc:2355]: (style) Unused variable: attrIt
[src/imm/tools/imm_list.c:115]: (style) The scope of the variable 'i' can be 
reduced.
[src/imm/tools/imm_list.c:179]: (style) The scope of the variable 'i' can be 
reduced.
[src/imm/tools/imm_list.c:156]: (style) Obsolescent function 'ctime_r' called. 
It is recommended to use 'strftime' instead.
[src/imm/tools/imm_xmlw_dump.cc:455]: (style) Unused variable: valueString
[src/imm/tools/imm_xmlw_dump.cc:76]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/tools/imm_xmlw_dump.cc:184]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/tools/imm_xmlw_dump.cc:40]: (style, inconclusive) Technically the 
member function 'ObjectComp::operator()' can be const.
[src/imm/tools/imm_xmlw_dump.cc:56]: (performance) Function parameter 
'classRDNMap' should be passed by reference.
[src/imm/apitest/management/test_saImmOmAdminOperationContinue.c:107]: (style) 
The function 'saImmOmAdminOperationContinue_constructor' is never used.
[src/imm/agent/imma_om_api.cc:4628]: (style) The function 
'saImmOmAdminOperationContinue_o3' is never used.
[src/imm/agent/imma_oi_api.cc:2043]: (style) Variable 'objName' is assigned a 
value that is never used.
[src/imm/agent/imma_oi_api.cc:2264]: (style) Variable 'objName' is assigned a 
value that is never used.
[src/imm/agent/imma_oi_api.cc:2469]: (style) Variable 'objName' is assigned a 
value that is never used.
[src/imm/agent/imma_oi_api.cc:3154]: (style) Variable 'objName' is assigned a 
value that is never used.
[src/imm/agent/imma_oi_api.cc:3382]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/agent/imma_om_api.cc:4158] -> [src/imm/agent/imma_om_api.cc:4161]: 
(style, inconclusive) Variable 'rc' is reassigned a value before the old one 
has been used if variable is no semaphore variable.
[src/imm/agent/imma_om_api.cc:9866] -> [src/imm/agent/imma_om_api.cc:9874]: 
(style, inconclusive) Variable 'rc' is reassigned a value before the old one 
has been used if variable is no semaphore variable.
[src/imm/agent/imma_om_api.cc:9360]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/agent/imma_proc.cc:1043] -> [src/imm/agent/imma_proc.cc:1044]: (style, 
inconclusive) Variable 'ccbId' is reassigned a value before the old one has 
been used if variable is no semaphore variable.
[src/imm/agent/imma_proc.cc:685]: (style) Obsolescent function 'usleep' called. 
It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/agent/imma_proc.cc:1581]: (style) Obsolescent function 'usleep' 
called. It is recommended to use 'nanosleep' or 'setitimer' instead.
[src/imm/agent/imma_proc.cc:2297] -> [src/imm/agent/imma_proc.cc:2304]: (style) 
Variable 'locked' is reassigned a value before the old one has been used.
[src/imm/agent/imma_proc.cc:2574] -> [src/imm/agent/imma_proc.cc:2581]: (style) 
Variable 'locked' is reassigned a value before the old one has been used.
[src/imm/agent/imma_proc.cc:2700] -> [src/imm/agent/imma_proc.cc:2715]: (style, 
inconclusive) Variable 'errorStr' is reassigned a value before the old one has 
been used if variable is no semaphore variable.
[src/imm/agent/imma_proc.cc:2733] -> [src/imm/agent/imma_proc.cc:2740]: (style) 
Variable 'locked' is reassigned a value before the old one has been used.
[src/imm/agent/imma_proc.cc:2968] -> [src/imm/agent/imma_proc.cc:2975]: (style) 
Variable 'locked' is reassigned a value before the old one has been used.
[src/imm/agent/imma_oi_api.cc:2273]: (style) The function 
'saImmOiObjectImplementerRelease_o3' is never used.
[src/imm/agent/imma_oi_api.cc:2052]: (style) The function 
'saImmOiObjectImplementerSet_o3' is never used.



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to