2025-05-09 14:03 ftp://ftp.de.debian.org/debian/pool/main/c/cacti-spine/cacti-spine_1.2.30.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: d655a3a (2025-05-09 12:19:47 +0200) count: 148 148 elapsed-time: 2.4 2.5 head-timing-info: old-timing-info: head results: cacti-spine-1.2.30/error.c:47:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/error.c:143:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/error.c:174:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/error.c:54:13: style: Variable 'now_ptr' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/error.c:62:8: style: Variable 'log_fmt' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/nft_popen.c:144:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/nft_popen.c:305:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/nft_popen.c:344:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/nft_popen.c:174:16: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] cacti-spine-1.2.30/nft_popen.c:182:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/nft_popen.c:193:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/nft_popen.c:125:50: style:inconclusive: Function 'nft_popen' argument 2 names different: declaration 'mode' definition 'type'. [funcArgNamesDifferent] cacti-spine-1.2.30/nft_popen.h:68:57: note: Function 'nft_popen' argument 2 names different: declaration 'mode' definition 'type'. cacti-spine-1.2.30/nft_popen.c:125:50: note: Function 'nft_popen' argument 2 names different: declaration 'mode' definition 'type'. cacti-spine-1.2.30/php.c:174:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESULTS_BUFFER [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/php.c:336:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CANCEL_DISABLE [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/php.c:203:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/php.c:380:9: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] cacti-spine-1.2.30/php.c:391:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/php.c:402:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/php.c:548:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/php.c:171:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/php.c:268:13: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/php.c:541:10: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/ping.c:199:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNMPERR_UNKNOWN_OBJID [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/ping.c:347:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/ping.c:649:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/ping.c:784:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/ping.c:839:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/ping.c:896:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:59:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NETSNMP_DS_LIBRARY_ID [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:139:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NETSNMP_DS_LIBRARY_ID [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:415:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:575:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:659:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_OID_LEN [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:799:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESULTS_BUFFER [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/poller.c:60:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SIMULTANEOUS_SCRIPTS [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/poller.c:160:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESULTS_BUFFER [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/poller.c:2214:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESULTS_BUFFER [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/snmp.c:810:3: warning: If memory allocation fails, then there is a possible null pointer dereference: namep [nullPointerOutOfMemory] cacti-spine-1.2.30/snmp.c:807:45: note: Assuming allocation function fails cacti-spine-1.2.30/snmp.c:807:15: note: Assignment 'namep=name=(struct nameStruct*)calloc(num_oids,sizeof(*name))', assigned value is 0 cacti-spine-1.2.30/snmp.c:810:3: note: Null pointer dereference cacti-spine-1.2.30/snmp.c:812:41: warning: If memory allocation fails, then there is a possible null pointer dereference: namep [nullPointerOutOfMemory] cacti-spine-1.2.30/snmp.c:807:45: note: Assuming allocation function fails cacti-spine-1.2.30/snmp.c:807:15: note: Assignment 'namep=name=(struct nameStruct*)calloc(num_oids,sizeof(*name))', assigned value is 0 cacti-spine-1.2.30/snmp.c:812:41: note: Null pointer dereference cacti-spine-1.2.30/snmp.c:601:10: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] cacti-spine-1.2.30/snmp.c:586:9: note: status is assigned cacti-spine-1.2.30/snmp.c:601:10: note: status is overwritten cacti-spine-1.2.30/snmp.c:828:9: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] cacti-spine-1.2.30/snmp.c:824:9: note: status is assigned cacti-spine-1.2.30/snmp.c:828:9: note: status is overwritten cacti-spine-1.2.30/snmp.c:118:50: style: Parameter 'snmp_auth_protocol' can be declared as pointer to const [constParameterPointer] cacti-spine-1.2.30/snmp.c:415:29: style: Variable 'anOID_len' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/snmp.c:575:29: style: Variable 'anOID_len' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/snmp.c:659:29: style: Variable 'anOID_len' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/snmp.c:660:29: style: Variable 'rootlen' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/ping.c:302:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/ping.c:496:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/ping.c:677:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/ping.c:697:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/ping.c:916:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/ping.c:997:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] cacti-spine-1.2.30/ping.c:1059:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] cacti-spine-1.2.30/ping.c:411:17: style: Variable 'return_code' is reassigned a value before the old one has been used. [redundantAssignment] cacti-spine-1.2.30/ping.c:405:17: note: return_code is assigned cacti-spine-1.2.30/ping.c:411:17: note: return_code is overwritten cacti-spine-1.2.30/ping.c:319:5: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] cacti-spine-1.2.30/ping.c:50:9: style: Local variable 'start_time' shadows outer variable [shadowVariable] cacti-spine-1.2.30/util.h:98:15: note: Shadowed declaration cacti-spine-1.2.30/ping.c:50:9: note: Shadow variable cacti-spine-1.2.30/ping.c:271:10: style: Variable 'cacti_msg' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/ping.c:279:18: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/ping.c:280:18: style: Variable 'pkt' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/ping.c:411:17: style: Variable 'return_code' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/ping.c:750:13: style: Variable 'total_time' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/ping.c:899:5: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/sql.c:67:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/sql.c:163:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/sql.c:277:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MYSQL_OPT_READ_TIMEOUT [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/spine.c:264:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/spine.c:1168:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/sql.c:78:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:84:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:174:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:180:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:328:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:338:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:332:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cacti-spine-1.2.30/sql.c:336:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] cacti-spine-1.2.30/sql.c:240:6: error: Memory leak: hostname [memleak] cacti-spine-1.2.30/sql.c:254:5: error: Memory leak: hostname [memleak] cacti-spine-1.2.30/spine.c:524:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] cacti-spine-1.2.30/spine.c:528:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] cacti-spine-1.2.30/spine.c:871:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/spine.c:913:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/spine.c:954:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/spine.c:981:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/sql.c:106:49: style:inconclusive: Function 'db_reconnect' argument 3 names different: declaration 'location' definition 'function'. [funcArgNamesDifferent] cacti-spine-1.2.30/sql.h:44:57: note: Function 'db_reconnect' argument 3 names different: declaration 'location' definition 'function'. cacti-spine-1.2.30/sql.c:106:49: note: Function 'db_reconnect' argument 3 names different: declaration 'location' definition 'function'. cacti-spine-1.2.30/sql.c:224:11: style: Variable 'connect_error' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/sql.c:146:21: style: Variable 'error' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/sql.c:267:12: style: Variable 'reconnect' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/sql.c:344:12: style: Variable 'tries' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:2258:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/poller.c:2321:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] cacti-spine-1.2.30/spine.c:523:7: style: Local variable 'i' shadows outer variable [shadowVariable] cacti-spine-1.2.30/spine.c:230:6: note: Shadowed declaration cacti-spine-1.2.30/spine.c:523:7: note: Shadow variable cacti-spine-1.2.30/spine.c:524:9: style: Variable 'token' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/spine.c:231:20: style: Variable 'thread_status' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/spine.c:837:7: style: Variable 'wait_retries' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:970:11: portability: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'long long int {aka signed long long}'. [invalidPrintfArgType_uint] cacti-spine-1.2.30/poller.c:1402:9: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] cacti-spine-1.2.30/poller.c:1503:8: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] cacti-spine-1.2.30/poller.c:1585:6: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] cacti-spine-1.2.30/poller.c:1643:6: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] cacti-spine-1.2.30/poller.c:1715:6: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] cacti-spine-1.2.30/poller.c:2337:25: style: Variable 'timeout.tv_usec' is reassigned a value before the old one has been used. [redundantAssignment] cacti-spine-1.2.30/poller.c:2332:26: note: timeout.tv_usec is assigned cacti-spine-1.2.30/poller.c:2337:25: note: timeout.tv_usec is overwritten cacti-spine-1.2.30/poller.c:116:2: style:inconclusive: Statements following noreturn function 'pthread_exit()' will never be executed. [unreachableCode] cacti-spine-1.2.30/poller.c:141:109: style: Parameter 'host_time' can be declared as pointer to const [constParameterPointer] cacti-spine-1.2.30/poller.c:212:10: style: Variable 'local_cnn' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/poller.c:213:10: style: Variable 'remote_cnn' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/poller.c:2188:68: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] cacti-spine-1.2.30/poller.c:2236:8: style: Variable 'token' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:1050:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/util.c:1150:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/util.c:1262:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/util.c:1474:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cacti-spine-1.2.30/poller.c:167:7: style: Variable 'error_len' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:2199:20: style: Variable 'begin_time' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:2316:18: style: Variable 'close_fd' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:2344:19: style: Variable 'close_fd' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:2350:18: style: Variable 'close_fd' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/poller.c:2355:18: style: Variable 'close_fd' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:1062:5: warning:inconclusive: Width 15 given in format string (no. 1) is smaller than destination buffer 'p1[1024]'. [invalidScanfFormatWidth_smaller] cacti-spine-1.2.30/util.c:1062:5: warning:inconclusive: Width 255 given in format string (no. 2) is smaller than destination buffer 'p2[1024]'. [invalidScanfFormatWidth_smaller] cacti-spine-1.2.30/util.c:1266:2: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] cacti-spine-1.2.30/util.c:2022:6: error: Memory leak: retval [memleak] cacti-spine-1.2.30/util.c:2026:6: error: Memory leak: retval [memleak] cacti-spine-1.2.30/util.c:2021:9: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] cacti-spine-1.2.30/util.c:2018:20: note: Assuming allocation function fails cacti-spine-1.2.30/util.c:2018:20: note: Assignment 'retval=strdup(mysql_row[0])', assigned value is 0 cacti-spine-1.2.30/util.c:2021:9: note: Null pointer dereference cacti-spine-1.2.30/util.c:1585:10: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] cacti-spine-1.2.30/util.c:1587:5: note: Found duplicate branches for 'if' and 'else'. cacti-spine-1.2.30/util.c:1585:10: note: Found duplicate branches for 'if' and 'else'. cacti-spine-1.2.30/util.c:689:8: style: Redundant initialization for 'sqlp'. The initialized value is overwritten before it is read. [redundantInitialization] cacti-spine-1.2.30/util.c:341:42: note: sqlp is initialized cacti-spine-1.2.30/util.c:689:8: note: sqlp is overwritten cacti-spine-1.2.30/util.c:61:29: style:inconclusive: Function 'set_option' argument 1 names different: declaration 'setting' definition 'option'. [funcArgNamesDifferent] cacti-spine-1.2.30/util.h:48:36: note: Function 'set_option' argument 1 names different: declaration 'setting' definition 'option'. cacti-spine-1.2.30/util.c:61:29: note: Function 'set_option' argument 1 names different: declaration 'setting' definition 'option'. cacti-spine-1.2.30/util.c:1417:28: style:inconclusive: Function 'all_digits' argument 1 names different: declaration 'str' definition 'string'. [funcArgNamesDifferent] cacti-spine-1.2.30/util.h:53:35: note: Function 'all_digits' argument 1 names different: declaration 'str' definition 'string'. cacti-spine-1.2.30/util.c:1417:28: note: Function 'all_digits' argument 1 names different: declaration 'str' definition 'string'. cacti-spine-1.2.30/util.c:1662:51: style:inconclusive: Function 'strncopy' argument 3 names different: declaration 'n' definition 'obuf'. [funcArgNamesDifferent] cacti-spine-1.2.30/util.h:63:58: note: Function 'strncopy' argument 3 names different: declaration 'n' definition 'obuf'. cacti-spine-1.2.30/util.c:1662:51: note: Function 'strncopy' argument 3 names different: declaration 'n' definition 'obuf'. cacti-spine-1.2.30/util.c:1709:11: style: Local variable 'trim' shadows outer function [shadowFunction] cacti-spine-1.2.30/util.h:64:14: note: Shadowed declaration cacti-spine-1.2.30/util.c:1709:11: note: Shadow variable cacti-spine-1.2.30/util.c:1731:11: style: Local variable 'trim' shadows outer function [shadowFunction] cacti-spine-1.2.30/util.h:64:14: note: Shadowed declaration cacti-spine-1.2.30/util.c:1731:11: note: Shadow variable cacti-spine-1.2.30/util.c:1040:29: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] cacti-spine-1.2.30/util.c:1043:8: style: Variable 'buffer' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:1244:13: style: Variable 'now_ptr' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:1604:25: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] cacti-spine-1.2.30/util.c:1709:11: style: Variable 'trim' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:1731:11: style: Variable 'trim' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:1770:34: style: Parameter 'needle' can be declared as pointer to const [constParameterPointer] cacti-spine-1.2.30/util.c:1771:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:2000:13: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] cacti-spine-1.2.30/util.c:696:8: style: Variable 'sqlp' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:716:8: style: Variable 'sqlp' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:1021:9: style: Variable 'sqlp' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:1024:9: style: Variable 'rows' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:1060:11: style: Variable 'buffer' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:1245:17: style: Unused variable: now [unusedVariable] cacti-spine-1.2.30/util.c:1475:13: style: Variable 'local_lval' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:1494:13: style: Variable 'local_dval' is assigned a value that is never used. [unreadVariable] cacti-spine-1.2.30/util.c:2003:12: style: Unused variable: i [unusedVariable] diff: DONE