2026-05-03 19:43 ftp://ftp.de.debian.org/debian/pool/main/n/netdiag/netdiag_1.2.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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 660 632 elapsed-time: 22.6 19.1 head-timing-info: old-timing-info: head results: netdiag-1.2/netload-1.2.2/netload.c:67:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netdiag-1.2/netload-1.2.2/netload.c:128:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/netload-1.2.2/netload.c:236:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_BOLD [valueFlowBailoutIncompleteVar] netdiag-1.2/netload-1.2.2/netload.c:344:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/netload-1.2.2/netload.c:400:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/netload-1.2.2/netload.c:515:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] netdiag-1.2/netload-1.2.2/netload.c:176:5: error: sscanf format string requires 18 parameters but only 17 are given. [wrongPrintfScanfArgNum] netdiag-1.2/netload-1.2.2/netload.c:176:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netload-1.2.2/netload.c:442:5: error: Memory leak: line [memleak] netdiag-1.2/netload-1.2.2/netload.c:539:1: error: Resource leak: source [resourceLeak] netdiag-1.2/netload-1.2.2/netload.c:539:1: error: Memory leak: message [memleak] netdiag-1.2/netload-1.2.2/netload.c:518:12: warning: If resource allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfResources] netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assuming allocation function fails netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assignment 'source=fopen(netrc,"r")', assigned value is 0 netdiag-1.2/netload-1.2.2/netload.c:518:12: note: Null pointer dereference netdiag-1.2/netload-1.2.2/netload.c:521:12: warning: If memory allocation fails, then there is a possible null pointer dereference: message [nullPointerOutOfMemory] netdiag-1.2/netload-1.2.2/netload.c:507:18: note: Assuming allocation function fails netdiag-1.2/netload-1.2.2/netload.c:507:18: note: Assignment 'message=malloc(10000*sizeof(char))', assigned value is 0 netdiag-1.2/netload-1.2.2/netload.c:510:6: note: Assuming condition is false netdiag-1.2/netload-1.2.2/netload.c:521:12: note: Null pointer dereference netdiag-1.2/netload-1.2.2/netload.c:442:10: style: Variable 'line' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netload-1.2.2/netload.c:393:6: note: line is assigned netdiag-1.2/netload-1.2.2/netload.c:442:10: note: line is overwritten netdiag-1.2/netload-1.2.2/netload.c:452:17: style: Variable 'period' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netload-1.2.2/netload.c:394:8: note: period is assigned netdiag-1.2/netload-1.2.2/netload.c:452:17: note: period is overwritten netdiag-1.2/netload-1.2.2/netload.c:315:17: style:inconclusive: Function 'reset' argument 1 names different: declaration '' definition 'signal'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:366:28: style:inconclusive: Function 'check_netloadrc' argument 1 names different: declaration '' definition 'device'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:497:22: style:inconclusive: Function 'mail_notify' argument 1 names different: declaration '' definition 'dormant'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:497:45: style:inconclusive: Function 'mail_notify' argument 2 names different: declaration '' definition 'rbytes'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:497:66: style:inconclusive: Function 'mail_notify' argument 3 names different: declaration '' definition 'sbytes'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:497:87: style:inconclusive: Function 'mail_notify' argument 4 names different: declaration '' definition 'rec_load'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:497:110: style:inconclusive: Function 'mail_notify' argument 5 names different: declaration '' definition 'trans_load'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:497:135: style:inconclusive: Function 'mail_notify' argument 6 names different: declaration '' definition 'total_load'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netload-1.2.2/netload.c:160:23: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netload-1.2.2/netload.c:337:34: style: Parameter 'v' can be declared as const array [constParameter] netdiag-1.2/netload-1.2.2/netload.c:366:28: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netload-1.2.2/netload.c:497:153: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netload-1.2.2/netload.c:105:6: style: Variable 'line' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netload-1.2.2/netload.c:73:8: style: Unused variable: filesize [unusedVariable] netdiag-1.2/netload-1.2.2/netload.c:167:32: style: Unused variable: frame [unusedVariable] netdiag-1.2/netload-1.2.2/netload.c:503:7: style: Unused variable: conf [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/bump.c:14:27: style: Parameter 'argv' can be declared as const array [constParameter] netdiag-1.2/netwatch-1.3.1-2/bump.c:44:10: style: Variable 'primnum' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/curs.c:58:7: style: Unused variable: i [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:342:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iphdr [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:465:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_HLINE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:527:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:364:34: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1334:8: warning:inconclusive: The buffer 'magnamatch' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1597:8: warning:inconclusive: The buffer 'magnamatch' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1000:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1382:8: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1382:8: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1386:8: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1386:8: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1390:8: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1390:8: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1647:8: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:1647:8: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:398:7: style: Local variable 'scrmid' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:130:12: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/dispdata.c:398:7: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/dispdata.c:286:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:296:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:304:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:319:9: style: Variable 'w' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:322:19: style: Variable 'pa' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:400:9: style: Variable 'pfin' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:562:14: style: Variable 'ptm' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:568:13: style: Variable 'pwork' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:569:9: style: Variable 'tmpservice' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:549:19: style: Variable 'localbypass' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:550:20: style: Variable 'remotebypass' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/dispdata.c:583:7: style: Unused variable: val [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/gh.c:102:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/gh.c:67:2: warning:inconclusive: The buffer 'home' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/gh.c:89:8: portability: Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'. [prohibitedgethostentCalled] netdiag-1.2/netwatch-1.3.1-2/gh.c:92:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/netwatch-1.3.1-2/gh.c:101:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/netwatch-1.3.1-2/gh.c:117:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'char'. [invalidPrintfArgType_uint] netdiag-1.2/netwatch-1.3.1-2/gh.c:117:9: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'char'. [invalidPrintfArgType_uint] netdiag-1.2/netwatch-1.3.1-2/gh.c:117:9: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'char'. [invalidPrintfArgType_uint] netdiag-1.2/netwatch-1.3.1-2/gh.c:117:9: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'char'. [invalidPrintfArgType_uint] netdiag-1.2/netwatch-1.3.1-2/gh.c:82:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] netdiag-1.2/netwatch-1.3.1-2/gh.c:81:15: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/gh.c:81:15: note: Assignment 'fp=fopen(testname,"w")', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/gh.c:82:12: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/gh.c:50:19: style: Variable 'mh' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/gh.c:53:9: style: Variable 'hostp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/gh.c:54:9: style: Variable 'homep' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:37:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tcphdr [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:48:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable udphdr [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:67:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable icmphdr [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:73:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLK_TCK [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:92:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETH_HLEN [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:194:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:78:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:107:4: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:30:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:45:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:57:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:145:26: style: Parameter 'argv' can be declared as const array [constParameter] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:29:23: style: Variable 'len' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:44:23: style: Variable 'len' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/lookdata.c:56:23: style: Variable 'len' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:64:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:156:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:230:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:262:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:293:12: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:370:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:99:2: warning: If memory allocation fails, then there is a possible null pointer dereference: place [nullPointerOutOfMemory] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:98:16: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/netresolv.c:98:16: note: Assignment 'place=malloc(sizeof(*place))', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/netresolv.c:99:2: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/netresolv.c:104:2: warning: If memory allocation fails, then there is a possible null pointer dereference: place [nullPointerOutOfMemory] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:98:16: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/netresolv.c:98:16: note: Assignment 'place=malloc(sizeof(*place))', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/netresolv.c:104:2: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/netresolv.c:185:47: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:297:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:308:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:309:14: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:319:8: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:222:16: style: Variable 'sig_time_spot' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:217:16: note: sig_time_spot is assigned netdiag-1.2/netwatch-1.3.1-2/netresolv.c:222:16: note: sig_time_spot is overwritten netdiag-1.2/netwatch-1.3.1-2/netresolv.c:83:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:91:35: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:235:17: style: Variable 'top' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:238:18: style: Variable 'res' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netresolv.c:240:13: style: Variable 'pu' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:746:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:936:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:964:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1000:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1057:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1111:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1129:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1139:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1188:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1393:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_BLOCK [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1435:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACS_BLOCK [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1485:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1540:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1647:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1870:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1891:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1990:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2565:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2607:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2651:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2766:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_APPEND [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3098:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3270:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3455:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3505:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3550:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iphdr [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3647:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3763:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3813:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3947:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2369:31: style:inconclusive: Boolean expression '!tstat.st_mode' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:762:6: warning:inconclusive: The buffer 'speclogfile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:764:6: warning:inconclusive: The buffer 'tmstring' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:766:6: warning:inconclusive: The buffer 'statsfile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:799:8: warning:inconclusive: The buffer 'nw_remname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:805:8: warning:inconclusive: The buffer 'nw_locname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:811:8: warning:inconclusive: The buffer 'nw_indivmain' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:816:8: warning:inconclusive: The buffer 'nw_indivmain' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:822:8: warning:inconclusive: The buffer 'nw_allname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:857:8: warning:inconclusive: The buffer 'nw_simfile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1190:5: warning:inconclusive: The buffer 'tmphost' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2084:2: warning:inconclusive: The buffer 'mylog' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2089:2: warning:inconclusive: The buffer 'speclogfile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2092:2: warning:inconclusive: The buffer 'configfile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2099:2: warning:inconclusive: The buffer 'ethdevname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2129:2: warning:inconclusive: The buffer 'nw_simfile' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1981:5: warning: Return value of function pipe() is not used. [ignoredReturnValue] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1982:5: warning: Return value of function pipe() is not used. [ignoredReturnValue] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1845:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:708:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1188:13: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1256:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3132:13: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2369:31: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2369:31: warning: Result of operator '|' is always true if one operand is non-zero. Did you intend to use '&'? [badBitmaskCheck] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:735:14: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2191:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3072:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3363:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3442:55: warning: If resource allocation fails, then there is a possible null pointer dereference: nw_fprem [nullPointerOutOfResources] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3441:24: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3441:24: note: Assignment 'nw_fprem=fopen(nw_remname,"a")', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3442:55: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3493:55: warning: If resource allocation fails, then there is a possible null pointer dereference: nw_fploc [nullPointerOutOfResources] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3492:24: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3492:24: note: Assignment 'nw_fploc=fopen(nw_locname,"a")', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3493:55: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1022:27: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1043:15: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:4026:4: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:4029:4: note: Found duplicate branches for 'if' and 'else'. netdiag-1.2/netwatch-1.3.1-2/netwatch.c:4026:4: note: Found duplicate branches for 'if' and 'else'. netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1422:16: style: Same expression on both sides of '-'. [duplicateExpression] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1411:20: note: 'numoflines' is assigned value '3' here. netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1422:16: note: Same expression on both sides of '-'. netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1586:6: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1582:6: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1586:6: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1587:6: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1586:6: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1587:6: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1595:6: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1594:6: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1595:6: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1620:6: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1619:6: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1620:6: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1628:6: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1627:6: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1628:6: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1689:8: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1686:8: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1689:8: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2771:5: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2770:5: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2771:5: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2782:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2781:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2782:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2783:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2782:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2783:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2800:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2799:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2800:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3140:14: style: Variable 'llockout' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3135:14: note: llockout is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3140:14: note: llockout is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3297:14: style: Variable 'rlockout' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3292:14: note: rlockout is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3297:14: note: rlockout is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3443:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3442:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3443:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3452:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3450:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3452:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3453:15: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3452:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3453:15: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3464:5: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3463:5: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3464:5: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3494:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3493:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3494:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3502:10: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3501:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3502:10: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3503:15: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3502:10: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3503:15: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3514:5: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3513:5: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3514:5: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3670:9: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3669:9: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3670:9: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3678:7: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3677:7: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3678:7: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3679:12: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3678:7: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3679:12: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3690:9: style: Variable 'st' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3689:9: note: st is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3690:9: note: st is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3951:26: style: Variable 'in_char' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3950:11: note: in_char is assigned netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3951:26: note: in_char is overwritten netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1776:50: error: Shifting by a negative value is undefined behaviour [shiftNegative] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:4286:12: error: Expression 'bpsflag=++bpsflag&1' depends on order of evaluation of side effects [unknownEvaluationOrder] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1859:24: style:inconclusive: Function 'all_keyins' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1875:24: style:inconclusive: Function 'all_netins' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2589:26: style:inconclusive: Function 'findaddr' argument 1 names different: declaration 'searchaddr' definition 'lookaddr'. [funcArgNamesDifferent] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:606:26: note: Function 'findaddr' argument 1 names different: declaration 'searchaddr' definition 'lookaddr'. netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2589:26: note: Function 'findaddr' argument 1 names different: declaration 'searchaddr' definition 'lookaddr'. netdiag-1.2/netwatch-1.3.1-2/netwatch.c:611:25: style: Local variable 'work' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:276:57: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/netwatch.c:611:25: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1246:13: style: Local variable 'current' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:276:40: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1246:13: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2573:13: style: Local variable 'current' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:276:40: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2573:13: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2591:13: style: Local variable 'current' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:276:40: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2591:13: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/netwatch.c:631:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:703:14: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1066:14: style: Variable 'pi' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1250:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1406:38: style: Parameter 'mss' can be declared as const array [constParameter] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1461:35: style: Parameter 's' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1859:24: style: Parameter 'p' can be declared as pointer to const. However it seems that 'all_keyins' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1900:55: note: You might need to cast the function pointer here netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1859:24: note: Parameter 'p' can be declared as pointer to const netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1875:24: style: Parameter 'p' can be declared as pointer to const. However it seems that 'all_netins' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1909:55: note: You might need to cast the function pointer here netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1875:24: note: Parameter 'p' can be declared as pointer to const netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2298:22: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2507:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2550:30: style: Parameter 'naddr' can be declared as const array [constParameter] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2558:25: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2561:14: style: Variable 'k' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2591:13: style: Variable 'current' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2665:29: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2685:35: style: Parameter 'find' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2707:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2752:14: style: Variable 'mpaddr' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3012:18: style: Variable 'pk' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3015:26: style: Variable 'phost' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3239:18: style: Variable 'pk' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3620:39: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3761:19: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2911:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2934:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2955:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2977:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:2983:37: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3549:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3552:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3651:42: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:686:4: style: Variable 'p' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:705:7: style: Unused variable: i [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:705:10: style: Unused variable: j [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:990:7: style: Unused variable: actnum [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:992:7: style: Unused variable: i [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:992:10: style: Unused variable: sz [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:993:14: style: Variable 'inside' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1412:17: style: Variable 'splitspot' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1595:6: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1628:6: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1687:16: style: Variable 'chactstart' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1689:8: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1646:7: style: Unused variable: n [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1651:12: style: Unused variable: rsset [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1651:19: style: Unused variable: csset [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1655:7: style: Unused variable: i [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1957:14: style: Unused variable: mask [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3443:10: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3453:15: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3464:5: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3494:10: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3503:15: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3514:5: style: Variable 'st' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3740:14: style: Variable 'ppp_addr' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3741:14: style: Variable 'ppp_cont' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3742:15: style: Variable 'ppp_proto' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3813:12: style: Variable 'cont' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3942:7: style: Unused variable: dum [unusedVariable] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:187:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:237:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:92:10: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:149:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:156:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:163:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:170:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:81:8: style: Local variable 'buf' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:16:13: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:81:8: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:20:28: style: Parameter 'hold' can be declared as const array [constParameter] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:48:20: style: Parameter 'hex' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:125:9: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:92:8: style: Variable 'num' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/processinetrc.c:121:14: style: Variable 'ethere' is assigned a value that is never used. [unreadVariable] netdiag-1.2/netwatch-1.3.1-2/semaphore.c:211:17: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/services.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICMPMAX [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/services.c:61:2: warning: If memory allocation fails, then there is a possible null pointer dereference: place [nullPointerOutOfMemory] netdiag-1.2/netwatch-1.3.1-2/services.c:59:36: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/services.c:59:10: note: Assignment 'place=(struct port_info*)malloc(sizeof(*first[spot]))', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/services.c:61:2: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/services.c:62:9: warning: If memory allocation fails, then there is a possible null pointer dereference: place [nullPointerOutOfMemory] netdiag-1.2/netwatch-1.3.1-2/services.c:59:36: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/services.c:59:10: note: Assignment 'place=(struct port_info*)malloc(sizeof(*first[spot]))', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/services.c:62:9: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/services.c:63:2: warning: If memory allocation fails, then there is a possible null pointer dereference: place [nullPointerOutOfMemory] netdiag-1.2/netwatch-1.3.1-2/services.c:59:36: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/services.c:59:10: note: Assignment 'place=(struct port_info*)malloc(sizeof(*first[spot]))', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/services.c:63:2: note: Null pointer dereference netdiag-1.2/netwatch-1.3.1-2/services.c:76:7: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/netwatch-1.3.1-2/netwatch.h:175:18: note: Shadowed declaration netdiag-1.2/netwatch-1.3.1-2/services.c:76:7: note: Shadow variable netdiag-1.2/netwatch-1.3.1-2/services.c:39:20: style: Variable 'current' can be declared as pointer to const [constVariablePointer] netdiag-1.2/netwatch-1.3.1-2/services.c:52:59: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/netwatch-1.3.1-2/warning.c:22:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ALERT [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/warning.c:49:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ALERT [valueFlowBailoutIncompleteVar] netdiag-1.2/netwatch-1.3.1-2/warning.c:57:4: warning:inconclusive: The buffer 'warnto' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/statnet-3.8/getservent.c:102:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/if_getstats.c:34:20: style: Parameter 'ifname' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/if_getstats.c:42:9: style: Variable 'bp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/statnet-3.8/interface.c:81:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/interface.c:112:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/interface.c:255:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _PATH_PROCNET_DEV [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/interface.c:356:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARPHRD_SLIP [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/interface.c:483:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/interface.c:503:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFF_UP [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/interface.c:81:15: warning:inconclusive: Possible null pointer dereference: ife [nullPointer] netdiag-1.2/statnet-3.8/interface.c:70:29: note: Assignment 'ife=NULL', assigned value is 0 netdiag-1.2/statnet-3.8/interface.c:72:18: note: Assuming condition is false netdiag-1.2/statnet-3.8/interface.c:81:15: note: Null pointer dereference netdiag-1.2/statnet-3.8/interface.c:184:33: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/interface.c:329:11: style: Variable 'ifname' can be declared as pointer to const [constVariablePointer] netdiag-1.2/statnet-3.8/interface.c:482:8: style: Variable 'errmsg' can be declared as pointer to const [constVariablePointer] netdiag-1.2/statnet-3.8/interface.c:498:10: style: Variable 'opt_a' can be declared as pointer to const [constVariablePointer] netdiag-1.2/statnet-3.8/interface.c:328:9: style: Unused variable: fd [unusedVariable] netdiag-1.2/statnet-3.8/itstime.c:42:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/services.c:680:20: portability: Non reentrant function 'getprotoent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotoent_r'. [prohibitedgetprotoentCalled] netdiag-1.2/statnet-3.8/services.c:19:7: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/services.c:19:7: note: Shadow variable netdiag-1.2/statnet-3.8/services.c:22:19: style: Variable 'serv' can be declared as pointer to const [constVariablePointer] netdiag-1.2/statnet-3.8/services.c:23:20: style: Variable 'proto' can be declared as pointer to const [constVariablePointer] netdiag-1.2/statnet-3.8/stat_delta.c:52:29: style: Variable 'Delta->regis.unknown_type' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/statnet-3.8/stat_delta.c:24:29: note: Delta->regis.unknown_type is assigned netdiag-1.2/statnet-3.8/stat_delta.c:52:29: note: Delta->regis.unknown_type is overwritten netdiag-1.2/statnet-3.8/stat_delta.c:18:12: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/stat_delta.c:18:12: note: Shadow variable netdiag-1.2/statnet-3.8/stat_delta.c:18:12: style: Unused variable: temp_int [unusedVariable] netdiag-1.2/statnet-3.8/stat_delta.c:18:22: style: Unused variable: search [unusedVariable] netdiag-1.2/statnet-3.8/stat_ntoh.c:21:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXINT [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/stat_ntoh.c:68:28: style: Variable 'New->regis.unknown_type' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/statnet-3.8/stat_ntoh.c:41:28: note: New->regis.unknown_type is assigned netdiag-1.2/statnet-3.8/stat_ntoh.c:68:28: note: New->regis.unknown_type is overwritten netdiag-1.2/statnet-3.8/stat_ntoh.c:18:23: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/stat_ntoh.c:18:23: note: Shadow variable netdiag-1.2/statnet-3.8/stat_ntoh.c:18:23: style: Unused variable: temp_int [unusedVariable] netdiag-1.2/statnet-3.8/stat_ntoh.c:18:33: style: Unused variable: search [unusedVariable] netdiag-1.2/statnet-3.8/statnet.c:101:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netdiag-1.2/statnet-3.8/statnet.c:110:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXINT [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnet.c:463:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnet.c:823:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnet.c:903:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnet.c:548:36: style: Condition 'genwin!=NULL' is always true [knownConditionTrueFalse] netdiag-1.2/statnet-3.8/statnet.c:426:44: style:inconclusive: Function 'update_display' argument 1 names different: declaration '' definition 'Now'. [funcArgNamesDifferentUnnamed] netdiag-1.2/statnet-3.8/statnet.c:426:71: style:inconclusive: Function 'update_display' argument 2 names different: declaration '' definition 'Prev'. [funcArgNamesDifferentUnnamed] netdiag-1.2/statnet-3.8/statnet.c:255:8: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/statnet.c:255:8: note: Shadow variable netdiag-1.2/statnet-3.8/statnet.c:901:14: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/statnet.c:431:7: style: Unused variable: port_int [unusedVariable] netdiag-1.2/statnet-3.8/statnet.c:432:7: style: Unused variable: port_now [unusedVariable] netdiag-1.2/statnet-3.8/statnet.c:433:7: style: Unused variable: now_value [unusedVariable] netdiag-1.2/statnet-3.8/statnet.c:434:7: style: Unused variable: search_int [unusedVariable] netdiag-1.2/statnet-3.8/statnet.c:435:7: style: Unused variable: last_value [unusedVariable] netdiag-1.2/statnet-3.8/statnet.c:438:8: style: Unused variable: eth [unusedVariable] netdiag-1.2/statnet-3.8/statnetd.c:118:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netdiag-1.2/statnet-3.8/statnetd.c:135:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXINT [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnetd.c:548:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable source [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnetd.c:715:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/statnet-3.8/statnetd.c:453:32: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/statnetd.c:623:64: style: Parameter 'saddr' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/statnetd.c:713:14: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/statnetd.c:548:59: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:550:60: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:559:59: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:561:60: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:591:59: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:593:60: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:602:59: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:604:60: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:630:40: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:696:54: portability: '(void*)buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] netdiag-1.2/statnet-3.8/statnetd.c:625:7: style: Unused variable: prot_int [unusedVariable] netdiag-1.2/statnet-3.8/statnetd.c:626:7: style: Unused variable: search_int [unusedVariable] netdiag-1.2/statnet-3.8/statnetd.c:627:7: style: Unused variable: prot_now [unusedVariable] netdiag-1.2/statnet-3.8/tally.c:65:41: style: Variable 'tally->types[tally->t_max-1]' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/statnet-3.8/tally.c:63:37: note: tally->types[tally->t_max-1] is assigned netdiag-1.2/statnet-3.8/tally.c:65:41: note: tally->types[tally->t_max-1] is overwritten netdiag-1.2/statnet-3.8/tally.c:16:16: style: Variable 'search_int' is assigned a value that is never used. [unreadVariable] netdiag-1.2/statnet-3.8/tally_delta.c:16:12: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/tally_delta.c:16:12: note: Shadow variable netdiag-1.2/statnet-3.8/tally_init.c:26:6: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/tally_init.c:26:6: note: Shadow variable netdiag-1.2/statnet-3.8/tally_label.c:13:1: portability: Omitted return type of function 'tally_label' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] netdiag-1.2/statnet-3.8/tally_label.c:63:50: style: Unsigned expression 'now_value=Now_ts->c_show_list[temp_int]' can't be negative so it is unnecessary to test it. [unsignedPositive] netdiag-1.2/statnet-3.8/tally_label.c:22:20: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/tally_label.c:22:20: note: Shadow variable netdiag-1.2/statnet-3.8/tally_ntoh.c:18:12: style: Local variable 'temp_int' shadows outer variable [shadowVariable] netdiag-1.2/statnet-3.8/stat.h:168:16: note: Shadowed declaration netdiag-1.2/statnet-3.8/tally_ntoh.c:18:12: note: Shadow variable netdiag-1.2/statnet-3.8/tally_ntoh.c:18:22: style: Unused variable: search [unusedVariable] netdiag-1.2/statnet-3.8/win_show_stat.c:10:98: style: Parameter 'Prev_ts' can be declared as pointer to const [constParameterPointer] netdiag-1.2/statnet-3.8/win_show_stat.c:99:25: style: Variable 'port_now' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/daemon.c:62:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/discard.c:88:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/discard.c:105:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/discard.c:126:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/discard.c:134:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/discard.c:140:2: warning:inconclusive: The buffer 'fname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/tcpblast-20011111/discard.c:230:9: warning: Return value of function strerror() is not used. [ignoredReturnValue] netdiag-1.2/tcpblast-20011111/discard.c:64:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpblast-20011111/discard.c:141:15: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] netdiag-1.2/tcpblast-20011111/discard.c:199:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/discard.c:95:17: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/discard.c:104:13: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/discard.c:125:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/discard.c:58:15: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/discard.c:67:15: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/discard.c:78:15: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:57:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_REUSEADDR [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:58:43: error: Null pointer dereference [nullPointer] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:92:43: error: Null pointer dereference [nullPointer] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:53:48: style: Checking if unsigned expression 'bytes=read(sock,buf,sizeof(buf))' is less than zero. [unsignedLessThanZero] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:53:16: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:47:7: style: Unused variable: max_fd [unusedVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:49:17: style: Unused variable: bytes_in [unusedVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:65:25: style: Variable 'newsock' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:67:18: style: Unused variable: listenaddr [unusedVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/discard.c:68:7: style: Variable 'on' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:61:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:86:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:118:88: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:111:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:115:6: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:166:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:197:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:200:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:182:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:188:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:246:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:59:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:84:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/docs/orig/pieters/tcpblast.c:180:54: error: Uninitialized variable: &size [uninitvar] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.bsd.c:46:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.bsd.c:58:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.bsd.c:70:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.bsd.c:73:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:46:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:69:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:72:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:114:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:116:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/tcpblast-20011111/docs/orig/tcpblast.c:55:51: error: Uninitialized variable: &size [uninitvar] netdiag-1.2/tcpblast-20011111/docs/orig/udpblast.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/docs/orig/udpblast.c:46:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/docs/orig/udpblast.c:64:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netdiag-1.2/tcpblast-20011111/docs/orig/udpblast.c:67:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpblast-20011111/docs/orig/udpblast.c:109:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/tcpblast-20011111/getopt.c:684:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/getopt.c:513:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:514:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:515:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:516:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:517:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:518:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:976:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:977:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:978:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt.c:779:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/tcpblast-20011111/getopt1.c:68:10: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:69:19: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:70:18: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:71:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:72:11: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:84:10: style:inconclusive: Function 'getopt_long_only' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:85:19: style:inconclusive: Function 'getopt_long_only' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:86:18: style:inconclusive: Function 'getopt_long_only' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:87:27: style:inconclusive: Function 'getopt_long_only' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/getopt1.c:88:11: style:inconclusive: Function 'getopt_long_only' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpblast-20011111/tcpblast.c:96:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:167:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:323:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:414:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:443:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:459:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:578:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpblast-20011111/tcpblast.c:529:3: warning:inconclusive: The buffer 'fname' may not be null-terminated after the call to strncpy(). [terminateStrncpy] netdiag-1.2/tcpblast-20011111/tcpblast.c:248:4: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:272:4: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:408:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:475:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:533:15: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:542:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:678:10: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:690:17: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:745:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:748:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:759:12: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:795:24: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:811:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] netdiag-1.2/tcpblast-20011111/tcpblast.c:378:6: style: The if condition is the same as the previous if condition [duplicateCondition] netdiag-1.2/tcpblast-20011111/tcpblast.c:369:6: note: First condition netdiag-1.2/tcpblast-20011111/tcpblast.c:378:6: note: Second condition netdiag-1.2/tcpblast-20011111/tcpblast.c:630:25: style: Condition 'parse_rates(srate)' is always false [knownConditionTrueFalse] netdiag-1.2/tcpblast-20011111/tcpblast.c:630:25: note: Calling function 'parse_rates' returns 0 netdiag-1.2/tcpblast-20011111/tcpblast.c:630:25: note: Condition 'parse_rates(srate)' is always false netdiag-1.2/tcpblast-20011111/tcpblast.c:233:19: error: Dereferencing 'circwbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:235:4: error: Dereferencing 'circwbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:236:4: error: Dereferencing 'circwbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:239:12: error: Dereferencing 'circwbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:241:12: error: Dereferencing 'circwbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:257:18: error: Dereferencing 'circrbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:259:4: error: Dereferencing 'circrbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:260:4: error: Dereferencing 'circrbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:263:12: error: Dereferencing 'circrbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:265:12: error: Dereferencing 'circrbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:310:26: error: Dereferencing 'circwbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:311:26: error: Dereferencing 'circrbuf' after it is deallocated / released [deallocuse] netdiag-1.2/tcpblast-20011111/tcpblast.c:473:21: style: Local variable 'sock_in' shadows outer variable [shadowVariable] netdiag-1.2/tcpblast-20011111/tcpblast.c:68:20: note: Shadowed declaration netdiag-1.2/tcpblast-20011111/tcpblast.c:473:21: note: Shadow variable netdiag-1.2/tcpblast-20011111/tcpblast.c:95:13: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:166:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:359:14: style: Parameter 'tstr' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:399:8: style: Variable 'scan' can be declared as pointer to const [constVariablePointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:436:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:455:36: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:521:18: style: Variable 'service' can be declared as pointer to const [constVariablePointer] netdiag-1.2/tcpblast-20011111/tcpblast.c:676:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] netdiag-1.2/tcpspray/tcpspray.c:128:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpspray/tcpspray.c:397:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/tcpspray/tcpspray.c:158:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpspray/tcpspray.c:166:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] netdiag-1.2/tcpspray/tcpspray.c:170:5: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] netdiag-1.2/tcpspray/tcpspray.c:184:10: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] netdiag-1.2/tcpspray/tcpspray.c:203:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] netdiag-1.2/tcpspray/tcpspray.c:195:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpspray/tcpspray.c:195:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpspray/tcpspray.c:277:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpspray/tcpspray.c:294:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpspray/tcpspray.c:384:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] netdiag-1.2/tcpspray/tcpspray.c:290:28: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] netdiag-1.2/tcpspray/tcpspray.c:376:31: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] netdiag-1.2/tcpspray/tcpspray.c:395:7: style:inconclusive: Function 'usage' argument 1 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] netdiag-1.2/tcpspray/tcpspray.c:87:19: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/tcpspray/tcpspray.c:88:19: style: Variable 'serv' can be declared as pointer to const [constVariablePointer] netdiag-1.2/tcpspray/tcpspray.c:395:7: style: Parameter 'argv' can be declared as const array [constParameter] netdiag-1.2/tcpspray/tcpspray.c:290:14: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpspray/tcpspray.c:307:6: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpspray/tcpspray.c:343:6: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] netdiag-1.2/tcpspray/tcpspray.c:376:16: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/addrtoname.c:157:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/addrtoname.c:874:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCAP_ETHERS_FILE [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/addrtoname.c:716:15: portability: Non reentrant function 'getservent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservent_r'. [prohibitedgetserventCalled] netdiag-1.2/trafshow-5.2.3/addrtoname.c:1211:15: portability: Non reentrant function 'getprotoent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotoent_r'. [prohibitedgetprotoentCalled] netdiag-1.2/trafshow-5.2.3/addrtoname.c:1419:11: style: Checking if unsigned expression 'num' is less than zero. [unsignedLessThanZero] netdiag-1.2/trafshow-5.2.3/addrtoname.c:147:25: style:inconclusive: Function 'satoa' argument 1 names different: declaration 'saddr' definition 'sa'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/addrtoname.h:42:36: note: Function 'satoa' argument 1 names different: declaration 'saddr' definition 'sa'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:147:25: note: Function 'satoa' argument 1 names different: declaration 'saddr' definition 'sa'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:184:17: style:inconclusive: Function 'intoa' argument 1 names different: declaration '' definition 'addr'. [funcArgNamesDifferentUnnamed] netdiag-1.2/trafshow-5.2.3/addrtoname.c:242:23: style:inconclusive: Function 'getname' argument 1 names different: declaration 'addr' definition 'ap'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/addrtoname.h:35:35: note: Function 'getname' argument 1 names different: declaration 'addr' definition 'ap'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:242:23: note: Function 'getname' argument 1 names different: declaration 'addr' definition 'ap'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:469:41: style:inconclusive: Function 'etheraddr_string' argument 1 names different: declaration 'addr' definition 'ep'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/addrtoname.h:30:44: note: Function 'etheraddr_string' argument 1 names different: declaration 'addr' definition 'ep'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:469:41: note: Function 'etheraddr_string' argument 1 names different: declaration 'addr' definition 'ep'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:502:31: style:inconclusive: Function 'linkaddr_string' argument 1 names different: declaration 'addr' definition 'ep'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/addrtoname.h:29:43: note: Function 'linkaddr_string' argument 1 names different: declaration 'addr' definition 'ep'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:502:31: note: Function 'linkaddr_string' argument 1 names different: declaration 'addr' definition 'ep'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:502:54: style:inconclusive: Function 'linkaddr_string' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] netdiag-1.2/trafshow-5.2.3/addrtoname.c:684:23: style:inconclusive: Function 'ipxsap_string' argument 1 names different: declaration 'sap' definition 'port'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/addrtoname.h:57:35: note: Function 'ipxsap_string' argument 1 names different: declaration 'sap' definition 'port'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:684:23: note: Function 'ipxsap_string' argument 1 names different: declaration 'sap' definition 'port'. netdiag-1.2/trafshow-5.2.3/addrtoname.c:217:8: style: Parameter 'unused' can be declared as pointer to const. However it seems that 'name_resolved' is a callback function, if 'unused' is declared with const you might also need to cast function pointer(s). [constParameterCallback] netdiag-1.2/trafshow-5.2.3/addrtoname.c:270:36: note: You might need to cast the function pointer here netdiag-1.2/trafshow-5.2.3/addrtoname.c:217:8: note: Parameter 'unused' can be declared as pointer to const netdiag-1.2/trafshow-5.2.3/addrtoname.c:712:18: style: Variable 'sv' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/addrtoname.c:815:22: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/addrtoname.c:865:29: style: Variable 'el' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/addrtoname.c:870:33: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/addrtoname.c:1207:19: style: Variable 'pe' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/addrtoname.c:523:4: error: Memory is allocated but not initialized: cp [uninitdata] netdiag-1.2/trafshow-5.2.3/addrtoname.c:524:3: error: Memory is allocated but not initialized: cp [uninitdata] netdiag-1.2/trafshow-5.2.3/addrtoname.c:623:3: error: Memory is allocated but not initialized: cp [uninitdata] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:65:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:114:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:143:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:207:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pcap_addr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:326:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ip [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:429:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:465:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:506:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:144:8: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:86:7: style: Variable 'slen' is reassigned a value before the old one has been used. [redundantAssignment] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:74:7: note: slen is assigned netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:86:7: note: slen is overwritten netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:99:16: style:inconclusive: Function 'match_feeder' argument 1 names different: declaration 'ph_list' definition 'ph'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:43:49: note: Function 'match_feeder' argument 1 names different: declaration 'ph_list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:99:16: note: Function 'match_feeder' argument 1 names different: declaration 'ph_list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:412:21: style:inconclusive: Function 'dump_netflow_v1' argument 1 names different: declaration 'data' definition 'dp'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:48:48: note: Function 'dump_netflow_v1' argument 1 names different: declaration 'data' definition 'dp'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:412:21: note: Function 'dump_netflow_v1' argument 1 names different: declaration 'data' definition 'dp'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:448:21: style:inconclusive: Function 'dump_netflow_v5' argument 1 names different: declaration 'data' definition 'dp'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:49:48: note: Function 'dump_netflow_v5' argument 1 names different: declaration 'data' definition 'dp'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:448:21: note: Function 'dump_netflow_v5' argument 1 names different: declaration 'data' definition 'dp'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:489:21: style:inconclusive: Function 'dump_netflow_v7' argument 1 names different: declaration 'data' definition 'dp'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:50:48: note: Function 'dump_netflow_v7' argument 1 names different: declaration 'data' definition 'dp'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:489:21: note: Function 'dump_netflow_v7' argument 1 names different: declaration 'data' definition 'dp'. netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:239:6: style: Local variable 'version' shadows outer variable [shadowVariable] netdiag-1.2/trafshow-5.2.3/trafshow.h:139:13: note: Shadowed declaration netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:239:6: note: Shadow variable netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:240:14: style: Variable 'v1h' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:241:14: style: Variable 'v5h' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:242:14: style: Variable 'v7h' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:243:15: style: Variable 'v1d' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:244:15: style: Variable 'v5d' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:245:15: style: Variable 'v7d' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:256:10: warning: Calling 'sizeof' on 'sizeof'. [sizeofsizeof] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:261:10: warning: Calling 'sizeof' on 'sizeof'. [sizeofsizeof] netdiag-1.2/trafshow-5.2.3/cisco_netflow.c:266:10: warning: Calling 'sizeof' on 'sizeof'. [sizeofsizeof] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:140:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:224:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETIMEDOUT [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:358:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:549:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:629:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOERROR [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:663:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFIXEDSZ [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:281:14: style: Condition '++reqid==0' is always false [knownConditionTrueFalse] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:667:10: style: Local variable 'type' shadows outer variable [shadowVariable] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:461:13: note: Shadowed declaration netdiag-1.2/trafshow-5.2.3/domain_resolver.c:667:10: note: Shadow variable netdiag-1.2/trafshow-5.2.3/domain_resolver.c:316:19: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:632:16: style: Variable 'dd' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:662:10: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/domain_resolver.c:383:14: style: Variable 'save_errno' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/events.c:114:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] netdiag-1.2/trafshow-5.2.3/events.c:71:24: style:inconclusive: Function 'tv_round' argument 1 names different: declaration 'tvp' definition 'in'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/events.h:40:39: note: Function 'tv_round' argument 1 names different: declaration 'tvp' definition 'in'. netdiag-1.2/trafshow-5.2.3/events.c:71:24: note: Function 'tv_round' argument 1 names different: declaration 'tvp' definition 'in'. netdiag-1.2/trafshow-5.2.3/events.c:146:11: style: Local variable 'func' shadows outer variable [shadowVariable] netdiag-1.2/trafshow-5.2.3/events.c:183:9: note: Shadowed declaration netdiag-1.2/trafshow-5.2.3/events.c:146:11: note: Shadow variable netdiag-1.2/trafshow-5.2.3/events.c:110:13: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/events.c:130:14: style: Variable 'next_event' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/getkey.c:507:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/getkey.c:546:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/getkey.c:55:16: style:inconclusive: Function 'getkey_init' argument 1 names different: declaration 'ph_list' definition 'ph'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/getkey.h:52:39: note: Function 'getkey_init' argument 1 names different: declaration 'ph_list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/getkey.c:55:16: note: Function 'getkey_init' argument 1 names different: declaration 'ph_list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/getkey.c:104:16: style:inconclusive: Function 'parse_key' argument 2 names different: declaration 'ph' definition 'ph_list'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/getkey.c:41:46: note: Function 'parse_key' argument 2 names different: declaration 'ph' definition 'ph_list'. netdiag-1.2/trafshow-5.2.3/getkey.c:104:16: note: Function 'parse_key' argument 2 names different: declaration 'ph' definition 'ph_list'. netdiag-1.2/trafshow-5.2.3/getkey.c:55:16: style: Parameter 'ph' can be declared as pointer to const [constParameterPointer] netdiag-1.2/trafshow-5.2.3/getkey.c:386:11: style: Variable 'ph' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/hashtab.c:368:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/trafshow-5.2.3/hashtab.c:368:5: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/trafshow-5.2.3/hashtab.c:370:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/trafshow-5.2.3/hashtab.c:370:3: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] netdiag-1.2/trafshow-5.2.3/hashtab.c:133:18: error: Memory leak: t [memleak] netdiag-1.2/trafshow-5.2.3/hashtab.c:141:18: error: Memory leak: t.table [memleak] netdiag-1.2/trafshow-5.2.3/hashtab.c:320:11: style: Variable 'h' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/help_page.c:160:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_REVERSE [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/help_page.c:136:12: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/help_page.c:178:12: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/lookupa.c:172:15: style:inconclusive: Function 'checksum' argument 2 names different: declaration 'length' definition 'len'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/lookupa.h:22:27: note: Function 'checksum' argument 2 names different: declaration 'length' definition 'len'. netdiag-1.2/trafshow-5.2.3/lookupa.c:172:15: note: Function 'checksum' argument 2 names different: declaration 'length' definition 'len'. netdiag-1.2/trafshow-5.2.3/netstat.c:187:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/netstat.c:246:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/netstat.c:337:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/netstat.c:292:26: style:inconclusive: Function 'netstat_match' argument 1 names different: declaration 'ns1' definition 'p1'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/netstat.h:138:34: note: Function 'netstat_match' argument 1 names different: declaration 'ns1' definition 'p1'. netdiag-1.2/trafshow-5.2.3/netstat.c:292:26: note: Function 'netstat_match' argument 1 names different: declaration 'ns1' definition 'p1'. netdiag-1.2/trafshow-5.2.3/netstat.c:292:31: style:inconclusive: Function 'netstat_match' argument 2 names different: declaration 'ns2' definition 'p2'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/netstat.h:138:54: note: Function 'netstat_match' argument 2 names different: declaration 'ns2' definition 'p2'. netdiag-1.2/trafshow-5.2.3/netstat.c:292:31: note: Function 'netstat_match' argument 2 names different: declaration 'ns2' definition 'p2'. netdiag-1.2/trafshow-5.2.3/netstat.c:302:26: style:inconclusive: Function 'netstat_bidir' argument 1 names different: declaration 'ns1' definition 'p1'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/netstat.h:139:34: note: Function 'netstat_bidir' argument 1 names different: declaration 'ns1' definition 'p1'. netdiag-1.2/trafshow-5.2.3/netstat.c:302:26: note: Function 'netstat_bidir' argument 1 names different: declaration 'ns1' definition 'p1'. netdiag-1.2/trafshow-5.2.3/netstat.c:302:31: style:inconclusive: Function 'netstat_bidir' argument 2 names different: declaration 'ns2' definition 'p2'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/netstat.h:139:54: note: Function 'netstat_bidir' argument 2 names different: declaration 'ns2' definition 'p2'. netdiag-1.2/trafshow-5.2.3/netstat.c:302:31: note: Function 'netstat_bidir' argument 2 names different: declaration 'ns2' definition 'p2'. netdiag-1.2/trafshow-5.2.3/netstat.c:214:11: style: Variable 'found' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/parse_dl.c:50:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DLT_NULL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/parse_dl.c:118:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/parse_dl.c:93:11: style:inconclusive: Function 'parse_dl' argument 3 names different: declaration 'clen' definition 'caplen'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/parse_dl.h:17:47: note: Function 'parse_dl' argument 3 names different: declaration 'clen' definition 'caplen'. netdiag-1.2/trafshow-5.2.3/parse_dl.c:93:11: note: Function 'parse_dl' argument 3 names different: declaration 'clen' definition 'caplen'. netdiag-1.2/trafshow-5.2.3/parse_dl.c:93:19: style:inconclusive: Function 'parse_dl' argument 4 names different: declaration 'plen' definition 'pktlen'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/parse_dl.h:17:57: note: Function 'parse_dl' argument 4 names different: declaration 'plen' definition 'pktlen'. netdiag-1.2/trafshow-5.2.3/parse_dl.c:93:19: note: Function 'parse_dl' argument 4 names different: declaration 'plen' definition 'pktlen'. netdiag-1.2/trafshow-5.2.3/parse_dl.c:94:16: style:inconclusive: Function 'parse_dl' argument 5 names different: declaration 'p' definition 'pkt'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/parse_dl.h:17:84: note: Function 'parse_dl' argument 5 names different: declaration 'p' definition 'pkt'. netdiag-1.2/trafshow-5.2.3/parse_dl.c:94:16: note: Function 'parse_dl' argument 5 names different: declaration 'p' definition 'pkt'. netdiag-1.2/trafshow-5.2.3/parse_ip.c:81:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable udphdr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/recycle.c:27:9: style:inconclusive: Function 'remkroot' argument 1 names different: declaration 'mysize' definition 'size'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/recycle.h:43:26: note: Function 'remkroot' argument 1 names different: declaration 'mysize' definition 'size'. netdiag-1.2/trafshow-5.2.3/recycle.c:27:9: note: Function 'remkroot' argument 1 names different: declaration 'mysize' definition 'size'. netdiag-1.2/trafshow-5.2.3/screen.c:53:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/screen.c:138:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/screen.c:148:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/screen.c:166:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/screen.c:179:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COLS [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/screen.c:78:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/screen.c:89:14: style: Variable 'new_rows' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/screen.c:90:21: style: Variable 'new_rows' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/screen.c:94:14: style: Variable 'new_cols' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/screen.c:95:21: style: Variable 'new_cols' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/screen.c:188:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] netdiag-1.2/trafshow-5.2.3/selector.c:44:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/selector.c:69:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/selector.c:119:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/selector.c:214:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_NORMAL [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/selector.c:392:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/selector.c:67:7: style:inconclusive: Function 'get_colors' argument 2 names different: declaration 'foreground' definition 'fore'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/selector.c:37:49: note: Function 'get_colors' argument 2 names different: declaration 'foreground' definition 'fore'. netdiag-1.2/trafshow-5.2.3/selector.c:67:7: note: Function 'get_colors' argument 2 names different: declaration 'foreground' definition 'fore'. netdiag-1.2/trafshow-5.2.3/selector.c:67:14: style:inconclusive: Function 'get_colors' argument 3 names different: declaration 'cursor' definition 'curs'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/selector.c:37:66: note: Function 'get_colors' argument 3 names different: declaration 'cursor' definition 'curs'. netdiag-1.2/trafshow-5.2.3/selector.c:67:14: note: Function 'get_colors' argument 3 names different: declaration 'cursor' definition 'curs'. netdiag-1.2/trafshow-5.2.3/selector.c:105:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/selector.c:203:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/selector.c:250:12: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] netdiag-1.2/trafshow-5.2.3/session.c:43:2: error: Syntax error in #elif [syntaxError] netdiag-1.2/trafshow-5.2.3/show_dump.c:88:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable A_STANDOUT [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/show_dump.c:104:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/show_dump.c:183:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/show_dump.c:241:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/show_dump.c:306:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdscr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/show_dump.c:369:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LINES [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/show_dump.c:243:15: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] netdiag-1.2/trafshow-5.2.3/show_dump.c:464:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] netdiag-1.2/trafshow-5.2.3/show_dump.c:480:16: style:inconclusive: Function 'show_ascii_dump' argument 1 names different: declaration 'p' definition 'cp'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/show_dump.c:56:43: note: Function 'show_ascii_dump' argument 1 names different: declaration 'p' definition 'cp'. netdiag-1.2/trafshow-5.2.3/show_dump.c:480:16: note: Function 'show_ascii_dump' argument 1 names different: declaration 'p' definition 'cp'. netdiag-1.2/trafshow-5.2.3/show_dump.c:513:16: style:inconclusive: Function 'show_hex_dump' argument 1 names different: declaration 'p' definition 'cp'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/show_dump.c:57:41: note: Function 'show_hex_dump' argument 1 names different: declaration 'p' definition 'cp'. netdiag-1.2/trafshow-5.2.3/show_dump.c:513:16: note: Function 'show_hex_dump' argument 1 names different: declaration 'p' definition 'cp'. netdiag-1.2/trafshow-5.2.3/show_dump.c:336:36: warning: Char literal compared with pointer 'cp=strpbrk(buf,"\r\n")'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] netdiag-1.2/trafshow-5.2.3/show_if.c:159:16: style:inconclusive: Function 'show_if_search' argument 1 names different: declaration 'list' definition 'ph'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/show_if.h:21:41: note: Function 'show_if_search' argument 1 names different: declaration 'list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/show_if.c:159:16: note: Function 'show_if_search' argument 1 names different: declaration 'list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/show_if.c:179:16: style:inconclusive: Function 'show_if_list' argument 1 names different: declaration 'list' definition 'ph'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/show_if.h:19:52: note: Function 'show_if_list' argument 1 names different: declaration 'list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/show_if.c:179:16: note: Function 'show_if_list' argument 1 names different: declaration 'list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/show_stat.c:546:6: style:inconclusive: Function 'show_stat_get' argument 2 names different: declaration 'at' definition 'idx'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/show_stat.h:29:60: note: Function 'show_stat_get' argument 2 names different: declaration 'at' definition 'idx'. netdiag-1.2/trafshow-5.2.3/show_stat.c:546:6: note: Function 'show_stat_get' argument 2 names different: declaration 'at' definition 'idx'. netdiag-1.2/trafshow-5.2.3/show_stat.c:76:11: style: Parameter 'at' can be declared as pointer to const [constParameterPointer] netdiag-1.2/trafshow-5.2.3/snprintf.c:75:27: style: Parameter 'state' can be declared as pointer to const. However it seems that 'sn_reserve' is a callback function, if 'state' is declared with const you might also need to cast function pointer(s). [constParameterCallback] netdiag-1.2/trafshow-5.2.3/snprintf.c:524:23: note: You might need to cast the function pointer here netdiag-1.2/trafshow-5.2.3/snprintf.c:75:27: note: Parameter 'state' can be declared as pointer to const netdiag-1.2/trafshow-5.2.3/strcasecmp.c:74:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable n [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/strftime.c:141:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TM_YEAR_BASE [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:110:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:319:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:526:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:796:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:820:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:856:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/trafshow.c:516:14: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] netdiag-1.2/trafshow-5.2.3/trafshow.c:427:20: error: Memory leak: ph [memleak] netdiag-1.2/trafshow-5.2.3/trafshow.c:475:16: style:inconclusive: Function 'pcap_setexpr' argument 1 names different: declaration 'ph_list' definition 'ph'. [funcArgNamesDifferent] netdiag-1.2/trafshow-5.2.3/trafshow.h:125:34: note: Function 'pcap_setexpr' argument 1 names different: declaration 'ph_list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/trafshow.c:475:16: note: Function 'pcap_setexpr' argument 1 names different: declaration 'ph_list' definition 'ph'. netdiag-1.2/trafshow-5.2.3/trafshow.c:93:18: style: Variable 'dev_name' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/trafshow.c:93:33: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] netdiag-1.2/trafshow-5.2.3/trafshow.c:219:11: style: Variable 'show_thr' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/trafshow.c:813:9: style: Variable 'hc' is assigned a value that is never used. [unreadVariable] netdiag-1.2/trafshow-5.2.3/util.c:103:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] netdiag-1.2/trafshow-5.2.3/util.c:62:19: style: Variable 'src' can be declared as pointer to const [constVariablePointer] diff: head netdiag-1.2/netload-1.2.2/netload.c:315:17: style:inconclusive: Function 'reset' argument 1 names different: declaration '' definition 'signal'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:366:28: style:inconclusive: Function 'check_netloadrc' argument 1 names different: declaration '' definition 'device'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:497:110: style:inconclusive: Function 'mail_notify' argument 5 names different: declaration '' definition 'trans_load'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:497:135: style:inconclusive: Function 'mail_notify' argument 6 names different: declaration '' definition 'total_load'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:497:22: style:inconclusive: Function 'mail_notify' argument 1 names different: declaration '' definition 'dormant'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:497:45: style:inconclusive: Function 'mail_notify' argument 2 names different: declaration '' definition 'rbytes'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:497:66: style:inconclusive: Function 'mail_notify' argument 3 names different: declaration '' definition 'sbytes'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netload-1.2.2/netload.c:497:87: style:inconclusive: Function 'mail_notify' argument 4 names different: declaration '' definition 'rec_load'. [funcArgNamesDifferentUnnamed] 2.20.0 netdiag-1.2/netload-1.2.2/netload.c:519:24: warning: If resource allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfResources] netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assuming allocation function fails netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assignment 'source=fopen(netrc,"r")', assigned value is 0 netdiag-1.2/netload-1.2.2/netload.c:519:24: note: Null pointer dereference 2.20.0 netdiag-1.2/netload-1.2.2/netload.c:520:12: warning: If resource allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfResources] netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assuming allocation function fails netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assignment 'source=fopen(netrc,"r")', assigned value is 0 netdiag-1.2/netload-1.2.2/netload.c:520:12: note: Null pointer dereference 2.20.0 netdiag-1.2/netload-1.2.2/netload.c:521:31: warning: If resource allocation fails, then there is a possible null pointer dereference: source [nullPointerOutOfResources] netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assuming allocation function fails netdiag-1.2/netload-1.2.2/netload.c:517:16: note: Assignment 'source=fopen(netrc,"r")', assigned value is 0 netdiag-1.2/netload-1.2.2/netload.c:521:31: note: Null pointer dereference 2.20.0 netdiag-1.2/netload-1.2.2/netload.c:523:23: warning: If memory allocation fails, then there is a possible null pointer dereference: message [nullPointerOutOfMemory] netdiag-1.2/netload-1.2.2/netload.c:507:18: note: Assuming allocation function fails netdiag-1.2/netload-1.2.2/netload.c:507:18: note: Assignment 'message=malloc(10000*sizeof(char))', assigned value is 0 netdiag-1.2/netload-1.2.2/netload.c:510:6: note: Assuming condition is false netdiag-1.2/netload-1.2.2/netload.c:523:23: note: Null pointer dereference head netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1859:24: style:inconclusive: Function 'all_keyins' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/netwatch-1.3.1-2/netwatch.c:1875:24: style:inconclusive: Function 'all_netins' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] 2.20.0 netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3443:53: warning: If resource allocation fails, then there is a possible null pointer dereference: nw_fprem [nullPointerOutOfResources] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3441:24: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3441:24: note: Assignment 'nw_fprem=fopen(nw_remname,"a")', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3443:53: note: Null pointer dereference 2.20.0 netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3494:53: warning: If resource allocation fails, then there is a possible null pointer dereference: nw_fploc [nullPointerOutOfResources] netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3492:24: note: Assuming allocation function fails netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3492:24: note: Assignment 'nw_fploc=fopen(nw_locname,"a")', assigned value is 0 netdiag-1.2/netwatch-1.3.1-2/netwatch.c:3494:53: note: Null pointer dereference head netdiag-1.2/statnet-3.8/statnet.c:426:44: style:inconclusive: Function 'update_display' argument 1 names different: declaration '' definition 'Now'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/statnet-3.8/statnet.c:426:71: style:inconclusive: Function 'update_display' argument 2 names different: declaration '' definition 'Prev'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:513:10: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:514:19: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:515:18: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:516:27: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '' definition 'longopts'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:517:11: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '' definition 'longind'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:518:10: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '' definition 'long_only'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:976:10: style:inconclusive: Function 'getopt' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:977:19: style:inconclusive: Function 'getopt' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt.c:978:18: style:inconclusive: Function 'getopt' argument 3 names different: declaration '' definition 'optstring'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:68:10: style:inconclusive: Function 'getopt_long' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:69:19: style:inconclusive: Function 'getopt_long' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:70:18: style:inconclusive: Function 'getopt_long' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:71:27: style:inconclusive: Function 'getopt_long' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:72:11: style:inconclusive: Function 'getopt_long' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:84:10: style:inconclusive: Function 'getopt_long_only' argument 1 names different: declaration '' definition 'argc'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:85:19: style:inconclusive: Function 'getopt_long_only' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:86:18: style:inconclusive: Function 'getopt_long_only' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:87:27: style:inconclusive: Function 'getopt_long_only' argument 4 names different: declaration '' definition 'long_options'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpblast-20011111/getopt1.c:88:11: style:inconclusive: Function 'getopt_long_only' argument 5 names different: declaration '' definition 'opt_index'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/tcpspray/tcpspray.c:395:7: style:inconclusive: Function 'usage' argument 1 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/trafshow-5.2.3/addrtoname.c:184:17: style:inconclusive: Function 'intoa' argument 1 names different: declaration '' definition 'addr'. [funcArgNamesDifferentUnnamed] head netdiag-1.2/trafshow-5.2.3/addrtoname.c:502:54: style:inconclusive: Function 'linkaddr_string' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] DONE