2024-04-23 06:42 ftp://ftp.de.debian.org/debian/pool/main/x/x11vnc/x11vnc_0.9.16.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=motif --library=openssl --library=cairo --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: 642cdfd (2024-04-23 07:24:14 +0200) count: 1413 1413 elapsed-time: 20.4 20.2 head-timing-info: old-timing-info: head results: x11vnc-0.9.16/misc/blockdpy.c:138:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/blockdpy.c:164:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DPMSModeOff [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:207:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:219:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:252:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:293:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:343:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:361:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:379:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:393:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:407:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:435:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:455:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/Xdummy.c:353:2: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] x11vnc-0.9.16/misc/Xdummy.c:300:9: style: Condition '0&&!closed_xf86Info_consoleFd' is always false [knownConditionTrueFalse] x11vnc-0.9.16/misc/Xdummy.c:123:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/Xdummy.c:259:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/blockdpy.c:157:6: style: Local variable 'verbose' shadows outer variable [shadowVariable] x11vnc-0.9.16/misc/blockdpy.c:124:5: note: Shadowed declaration x11vnc-0.9.16/misc/blockdpy.c:157:6: note: Shadow variable x11vnc-0.9.16/misc/blockdpy.c:157:19: style: Local variable 'bg' shadows outer variable [shadowVariable] x11vnc-0.9.16/misc/blockdpy.c:125:5: note: Shadowed declaration x11vnc-0.9.16/misc/blockdpy.c:157:19: note: Shadow variable x11vnc-0.9.16/misc/blockdpy.c:159:8: style: Variable 'lock_cmd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/blockdpy.c:160:8: style: Variable 'flag_file' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/turbovnc/tight.c:224:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:374:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:406:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:446:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitsPerPixel [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:487:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfbMemory [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:488:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfbMemory [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:489:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfbMemory [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:535:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:552:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:649:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:686:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:708:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:776:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:841:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ublen [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:872:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable updateBuf [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:929:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable updateBuf [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:1171:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbTranslateNone [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:1172:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbTranslateNone [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:1273:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bigEndian [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:1405:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitsPerPixel [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:204:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:730:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:1095:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:1205:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:1234:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:1479:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:1832:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/8to24.c:2107:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/misc/turbovnc/tight.c:281:14: style: Local variable 'y' shadows outer argument [shadowArgument] x11vnc-0.9.16/misc/turbovnc/tight.c:200:12: note: Shadowed declaration x11vnc-0.9.16/misc/turbovnc/tight.c:281:14: note: Shadow variable x11vnc-0.9.16/misc/turbovnc/tight.c:1441:40: style: Local variable 'j' shadows outer variable [shadowVariable] x11vnc-0.9.16/misc/turbovnc/tight.c:1395:17: note: Shadowed declaration x11vnc-0.9.16/misc/turbovnc/tight.c:1441:40: note: Shadow variable x11vnc-0.9.16/misc/turbovnc/tight.c:924:11: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/misc/turbovnc/tight.c:966:12: style: Variable 'data' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1069:1: style: Variable 'data' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1070:1: style: Variable 'data' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1171:1: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1172:1: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1264:21: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1267:13: style: Variable 'buf32' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/turbovnc/tight.c:1450:21: style: Variable 'srcptr2' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/misc/turbovnc/tight.c:869:14: style: Unused variable: i [unusedVariable] x11vnc-0.9.16/misc/turbovnc/tight.c:1403:9: style: Unused variable: dy [unusedVariable] x11vnc-0.9.16/src/8to24.c:238:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/8to24.c:257:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/8to24.c:1120:10: style: Condition '!poll_line(rect.x1,rect.x2,rect.y1,i,mod)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/8to24.c:1120:21: note: Calling function 'poll_line' returns 1 x11vnc-0.9.16/src/8to24.c:1120:10: note: Condition '!poll_line(rect.x1,rect.x2,rect.y1,i,mod)' is always false x11vnc-0.9.16/src/8to24.c:1902:7: style: Condition '0&&line%100==0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/8to24.c:2004:8: style: Condition '!get_cmap(j,cmaps[j])' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/8to24.c:2004:18: note: Calling function 'get_cmap' returns 0 x11vnc-0.9.16/src/8to24.c:2004:8: note: Condition '!get_cmap(j,cmaps[j])' is always true x11vnc-0.9.16/src/8to24.c:1994:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/8to24.c:1815:15: note: Shadowed declaration x11vnc-0.9.16/src/8to24.c:1994:7: note: Shadow variable x11vnc-0.9.16/src/8to24.c:1994:10: style: Local variable 'j' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/8to24.c:1815:18: note: Shadowed declaration x11vnc-0.9.16/src/8to24.c:1994:10: note: Shadow variable x11vnc-0.9.16/src/8to24.c:606:41: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/8to24.c:707:71: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/8to24.c:819:29: style: Parameter 'xi' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/8to24.c:819:41: style: Parameter 'visual' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/8to24.c:819:69: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/8to24.c:1522:32: style: Parameter 'xi' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/8to24.c:1811:17: style: Variable 'uc' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/8to24.c:1812:18: style: Variable 'us' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/8to24.c:1076:9: style: Variable 'inrun' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/avahi.c:156:6: style: Condition '!try_avahi_helper(name,host,port)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/avahi.c:156:23: note: Calling function 'try_avahi_helper' returns 0 x11vnc-0.9.16/src/avahi.c:156:6: note: Condition '!try_avahi_helper(name,host,port)' is always true x11vnc-0.9.16/src/avahi.c:54:35: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/avahi.c:54:47: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:294:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:380:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:489:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:518:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:551:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:569:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:616:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:638:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:858:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:874:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:896:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:907:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:972:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1018:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1198:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1290:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1319:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1334:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1351:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1378:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1562:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1616:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/appshare.c:1686:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:237:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:307:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:339:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:459:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:482:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:537:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:743:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cleanup.c:636:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/cleanup.c:152:13: style: Local variable 'depth' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:488:17: note: Shadowed declaration x11vnc-0.9.16/src/cleanup.c:152:13: note: Shadow variable x11vnc-0.9.16/src/cleanup.c:273:26: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cleanup.c:282:28: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cleanup.c:290:35: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cleanup.c:425:34: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cleanup.c:629:31: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cleanup.c:630:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/cleanup.c:338:13: style: Variable 'reopen' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/cleanup.c:631:13: style: Variable 'ignore' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/cleanup.c:636:4: style: Variable 'p' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/cleanup.c:755:6: style: Unused variable: fd [unusedVariable] x11vnc-0.9.16/src/appshare.c:600:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.16/src/appshare.c:652:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.16/src/appshare.c:1030:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.16/src/appshare.c:666:10: style: Condition 'appshare_debug' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/appshare.c:673:9: style: Condition 'appshare_debug' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/appshare.c:671:7: note: Assuming that condition '!appshare_debug' is not redundant x11vnc-0.9.16/src/appshare.c:673:9: note: Condition 'appshare_debug' is always false x11vnc-0.9.16/src/appshare.c:730:6: style: Condition '!ok' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/appshare.c:722:11: note: Assignment 'ok=0', assigned value is 0 x11vnc-0.9.16/src/appshare.c:730:6: note: Condition '!ok' is always true x11vnc-0.9.16/src/appshare.c:743:6: style: Condition 'ok' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/appshare.c:736:11: note: Assignment 'ok=0', assigned value is 0 x11vnc-0.9.16/src/appshare.c:743:6: note: Condition 'ok' is always false x11vnc-0.9.16/src/appshare.c:793:6: style: Condition '!rc' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/appshare.c:785:12: note: Assignment 'rc=0', assigned value is 0 x11vnc-0.9.16/src/appshare.c:793:6: note: Condition '!rc' is always true x11vnc-0.9.16/src/appshare.c:1044:9: style: Local variable 'f' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/appshare.c:1039:10: note: Shadowed declaration x11vnc-0.9.16/src/appshare.c:1044:9: note: Shadow variable x11vnc-0.9.16/src/appshare.c:318:30: style: Parameter 'cl' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:355:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/appshare.c:372:8: style: Variable 'suffix' can be declared as const array [constVariable] x11vnc-0.9.16/src/appshare.c:690:33: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:690:49: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:765:28: style: Variable 'list' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/appshare.c:783:36: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:783:44: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:902:24: style: Variable 'list' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/appshare.c:1010:26: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:1615:26: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:1656:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/appshare.c:1713:12: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/appshare.c:1889:35: style: Parameter 'argv' can be declared as const array [constParameter] x11vnc-0.9.16/src/appshare.c:1891:8: style: Variable 'app_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/appshare.c:1892:8: style: Variable 'dpy_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/appshare.c:1288:9: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] x11vnc-0.9.16/src/appshare.c:547:6: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/appshare.c:562:10: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:564:20: style: Variable 'last_check' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:566:18: style: Variable 'ms' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:764:6: style: Unused variable: ok [unusedVariable] x11vnc-0.9.16/src/appshare.c:765:9: style: Unused variable: r [unusedVariable] x11vnc-0.9.16/src/appshare.c:765:28: style: Variable 'list' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:766:15: style: Unused variable: nchild [unusedVariable] x11vnc-0.9.16/src/appshare.c:784:9: style: Unused variable: cr [unusedVariable] x11vnc-0.9.16/src/appshare.c:904:9: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:902:9: style: Unused variable: w [unusedVariable] x11vnc-0.9.16/src/appshare.c:902:12: style: Unused variable: r [unusedVariable] x11vnc-0.9.16/src/appshare.c:902:15: style: Unused variable: parent [unusedVariable] x11vnc-0.9.16/src/appshare.c:902:24: style: Variable 'list' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:903:15: style: Unused variable: nchild [unusedVariable] x11vnc-0.9.16/src/appshare.c:944:22: style: Variable 'free' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:944:6: style: Unused variable: i [unusedVariable] x11vnc-0.9.16/src/appshare.c:945:23: style: Unused variable: old_handler [unusedVariable] x11vnc-0.9.16/src/appshare.c:1893:20: style: Variable 'xselectinput' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:1890:6: style: Unused variable: i [unusedVariable] x11vnc-0.9.16/src/appshare.c:1891:8: style: Variable 'app_str' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/appshare.c:1892:8: style: Variable 'dpy_str' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/cursor.c:817:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1019:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1398:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable richSource [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1550:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1652:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1694:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1745:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1865:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:2076:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:2131:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:133:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_NORMAL [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:273:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbClientPtr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:501:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_PROTOCOL_VERSION [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:814:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clientMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:1098:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:1651:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:2058:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:2155:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:2276:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:2361:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:2739:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:3233:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:3839:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:3854:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:3875:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:3894:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_CLIENT_ACCEPT [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:3927:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clientMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:4242:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:4325:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:4389:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/cursor.c:1638:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/cursor.c:1514:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/cursor.c:1638:6: note: Condition 'db' is always false x11vnc-0.9.16/src/cursor.c:1248:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] x11vnc-0.9.16/src/cursor.c:1250:4: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.16/src/cursor.c:1248:9: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.16/src/cursor.c:1607:14: style: The comparison 'which == which0' is always true because 'which' and 'which0' represent the same value. [knownConditionTrueFalse] x11vnc-0.9.16/src/cursor.c:1580:17: note: 'which0' is assigned value 'which' here. x11vnc-0.9.16/src/cursor.c:1607:14: note: The comparison 'which == which0' is always true because 'which' and 'which0' represent the same value. x11vnc-0.9.16/src/cursor.c:2073:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] x11vnc-0.9.16/src/cursor.c:1517:7: style: Local variable 'depth' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:488:17: note: Shadowed declaration x11vnc-0.9.16/src/cursor.c:1517:7: note: Shadow variable x11vnc-0.9.16/src/cursor.c:2128:21: style: Local variable 'bpp' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:488:12: note: Shadowed declaration x11vnc-0.9.16/src/cursor.c:2128:21: note: Shadow variable x11vnc-0.9.16/src/cursor.c:2186:29: style: Local variable 'bpp' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:488:12: note: Shadowed declaration x11vnc-0.9.16/src/cursor.c:2186:29: note: Shadow variable x11vnc-0.9.16/src/cursor.c:2332:21: style: Local variable 'bpp' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:488:12: note: Shadowed declaration x11vnc-0.9.16/src/cursor.c:2332:21: note: Shadow variable x11vnc-0.9.16/src/cursor.c:887:38: style: Parameter 'depth' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cursor.c:887:53: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cursor.c:887:72: style: Parameter 'winfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cursor.c:1452:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/cursor.c:1686:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/cursor.c:2184:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/cursor.c:2245:23: style: Variable 'aptr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/cursor.c:2330:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/cursor.c:1604:10: error: Uninitialized variable: r [uninitvar] x11vnc-0.9.16/src/cursor.c:1604:16: error: Uninitialized variable: d [uninitvar] x11vnc-0.9.16/src/cursor.c:1604:22: error: Uninitialized variable: bw [uninitvar] x11vnc-0.9.16/src/cursor.c:1604:29: error: Uninitialized variable: h [uninitvar] x11vnc-0.9.16/src/cursor.c:1604:35: error: Uninitialized variable: w [uninitvar] x11vnc-0.9.16/src/cursor.c:1604:41: error: Uninitialized variable: y [uninitvar] x11vnc-0.9.16/src/cursor.c:1604:47: error: Uninitialized variable: x [uninitvar] x11vnc-0.9.16/src/cursor.c:2073:7: error: Uninitialized variable: mask [uninitvar] x11vnc-0.9.16/src/cursor.c:2073:16: error: Uninitialized variable: win_y [uninitvar] x11vnc-0.9.16/src/cursor.c:2073:26: error: Uninitialized variable: win_x [uninitvar] x11vnc-0.9.16/src/cursor.c:2073:36: error: Uninitialized variable: child_w [uninitvar] x11vnc-0.9.16/src/cursor.c:2073:48: error: Uninitialized variable: root_w [uninitvar] x11vnc-0.9.16/src/cursor.c:2082:7: error: Uninitialized variable: root_x [uninitvar] x11vnc-0.9.16/src/cursor.c:2082:27: error: Uninitialized variable: root_y [uninitvar] x11vnc-0.9.16/src/cursor.c:1521:17: style: Variable 'old_handler' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1584:21: style: Variable 'x' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1584:24: style: Variable 'y' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1585:18: style: Variable 'w' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1585:21: style: Variable 'h' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1585:24: style: Variable 'bw' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1585:28: style: Variable 'd' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1586:12: style: Variable 'r' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1987:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/cursor.c:1986:9: style: Variable 'root_w' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1986:17: style: Variable 'child_w' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1988:22: style: Variable 'win_x' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1988:29: style: Variable 'win_y' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/cursor.c:1990:15: style: Variable 'mask' is not assigned a value. [unassignedVariable] x11vnc-0.9.16/src/connections.c:450:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:456:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:1077:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:1081:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:1090:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:1131:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:1488:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:1525:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:2875:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:2878:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:3791:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:3794:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:4227:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:4238:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/connections.c:644:10: warning: Either the condition 'tmp_fd<0' is redundant or write() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] x11vnc-0.9.16/src/connections.c:640:15: note: Assuming that condition 'tmp_fd<0' is not redundant x11vnc-0.9.16/src/connections.c:644:10: note: Invalid argument x11vnc-0.9.16/src/connections.c:645:10: warning: Either the condition 'tmp_fd<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] x11vnc-0.9.16/src/connections.c:640:15: note: Assuming that condition 'tmp_fd<0' is not redundant x11vnc-0.9.16/src/connections.c:645:10: note: Invalid argument x11vnc-0.9.16/src/connections.c:771:7: style: Condition 'cd' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/connections.c:1646:12: style: Condition 'ret=ugly_window(addr,userhost,x,y,timeout,mode,1)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/connections.c:1646:25: note: Calling function 'ugly_window' returns 0 x11vnc-0.9.16/src/connections.c:1646:12: note: Condition 'ret=ugly_window(addr,userhost,x,y,timeout,mode,1)' is always false x11vnc-0.9.16/src/connections.c:1873:19: style: Condition 'unix_sock_fd>=0' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/connections.c:1868:33: note: Assuming that condition 'unix_sock_fd<0' is not redundant x11vnc-0.9.16/src/connections.c:1873:19: note: Condition 'unix_sock_fd>=0' is always true x11vnc-0.9.16/src/connections.c:1887:19: style: Condition 'unix_sock_fd>=0' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/connections.c:1868:33: note: Assuming that condition 'unix_sock_fd<0' is not redundant x11vnc-0.9.16/src/connections.c:1883:11: note: Assuming condition is false x11vnc-0.9.16/src/connections.c:1887:19: note: Condition 'unix_sock_fd>=0' is always true x11vnc-0.9.16/src/connections.c:1976:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.16/src/connections.c:598:3: error: Memory leak: old_display [memleak] x11vnc-0.9.16/src/connections.c:660:36: warning: Either the condition 'ph==NULL' is redundant or there is possible null pointer dereference: ph. [nullPointerRedundantCheck] x11vnc-0.9.16/src/connections.c:654:10: note: Assuming that condition 'ph==NULL' is not redundant x11vnc-0.9.16/src/connections.c:660:36: note: Null pointer dereference x11vnc-0.9.16/src/connections.c:691:16: warning: Either the condition 'ph==NULL' is redundant or there is possible null pointer dereference: ph. [nullPointerRedundantCheck] x11vnc-0.9.16/src/connections.c:686:10: note: Assuming that condition 'ph==NULL' is not redundant x11vnc-0.9.16/src/connections.c:691:16: note: Null pointer dereference x11vnc-0.9.16/src/connections.c:692:15: warning: Either the condition 'ph==NULL' is redundant or there is possible null pointer dereference: ph. [nullPointerRedundantCheck] x11vnc-0.9.16/src/connections.c:686:10: note: Assuming that condition 'ph==NULL' is not redundant x11vnc-0.9.16/src/connections.c:692:15: note: Null pointer dereference x11vnc-0.9.16/src/connections.c:1029:28: warning: Either the condition 'in==NULL' is redundant or there is possible null pointer dereference: in. [nullPointerRedundantCheck] x11vnc-0.9.16/src/connections.c:1023:10: note: Assuming that condition 'in==NULL' is not redundant x11vnc-0.9.16/src/connections.c:1029:28: note: Null pointer dereference x11vnc-0.9.16/src/connections.c:2979:7: style: Variable 'tot' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.16/src/connections.c:2977:8: note: tot is assigned x11vnc-0.9.16/src/connections.c:2979:7: note: tot is overwritten x11vnc-0.9.16/src/connections.c:1865:6: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.16/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.16/src/connections.c:1865:6: note: Shadow variable x11vnc-0.9.16/src/connections.c:2054:7: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/connections.c:2014:11: note: Shadowed declaration x11vnc-0.9.16/src/connections.c:2054:7: note: Shadow variable x11vnc-0.9.16/src/connections.c:2084:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/connections.c:2014:14: note: Shadowed declaration x11vnc-0.9.16/src/connections.c:2084:7: note: Shadow variable x11vnc-0.9.16/src/connections.c:2171:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/connections.c:2105:24: note: Shadowed declaration x11vnc-0.9.16/src/connections.c:2171:7: note: Shadow variable x11vnc-0.9.16/src/connections.c:4308:7: style: Local variable 'len' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/connections.c:4284:13: note: Shadowed declaration x11vnc-0.9.16/src/connections.c:4308:7: note: Shadow variable x11vnc-0.9.16/src/connections.c:278:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:436:18: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:437:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:466:72: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:1147:30: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:1147:42: style: Parameter 'userhost' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:1148:24: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:1556:29: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:2206:87: style: Parameter 'gethost' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:2252:9: style: Variable 't' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:2457:15: style: Variable 'ssh' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:2553:8: style: Variable 'equals' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:2853:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:3032:33: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:3043:35: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:3246:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:3246:23: style: Variable 'flip' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:3246:39: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:3524:21: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:3524:45: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:3551:23: style: Parameter 'prop' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:4207:38: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/connections.c:4281:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/connections.c:4445:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:280:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/gui.c:643:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/connections.c:854:8: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/connections.c:1863:18: style: Variable 'csock' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/connections.c:2076:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/connections.c:3179:6: style: Unused variable: rcp [unusedVariable] x11vnc-0.9.16/src/connections.c:3179:11: style: Unused variable: rck [unusedVariable] x11vnc-0.9.16/src/connections.c:3180:9: style: Unused variable: t0 [unusedVariable] x11vnc-0.9.16/src/connections.c:3180:13: style: Unused variable: t1 [unusedVariable] x11vnc-0.9.16/src/connections.c:3181:9: style: Unused variable: ta [unusedVariable] x11vnc-0.9.16/src/connections.c:3181:13: style: Unused variable: tb [unusedVariable] x11vnc-0.9.16/src/connections.c:3181:17: style: Unused variable: tc [unusedVariable] x11vnc-0.9.16/src/help.c:5820:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/help.c:5896:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/help.c:6063:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/help.c:6440:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/help.c:5822:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/help.c:5835:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/help.c:5818:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/help.c:5895:39: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/help.c:5983:7: style: Variable 'str1' can be declared as const array [constVariable] x11vnc-0.9.16/src/help.c:5998:7: style: Variable 'str2' can be declared as const array [constVariable] x11vnc-0.9.16/src/help.c:6040:7: style: Variable 'str3' can be declared as const array [constVariable] x11vnc-0.9.16/src/help.c:6048:7: style: Variable 'str4' can be declared as const array [constVariable] x11vnc-0.9.16/src/help.c:6056:7: style: Variable 'str5' can be declared as const array [constVariable] x11vnc-0.9.16/src/help.c:6084:7: style: Variable 'license' can be declared as const array [constVariable] x11vnc-0.9.16/src/help.c:6431:7: style: Variable 'top' can be declared as const array [constVariable] x11vnc-0.9.16/src/gui.c:261:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.16/src/gui.c:417:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:439:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:487:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:502:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:589:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:646:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:760:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:782:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/gui.c:621:26: style: Condition 'strstr(p,"setp")&&0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/gui.c:705:27: style: Condition 'tray_manager_running(test_dpy,NULL)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/gui.c:705:27: note: Calling function 'tray_manager_running' returns 0 x11vnc-0.9.16/src/gui.c:705:27: note: Condition 'tray_manager_running(test_dpy,NULL)' is always false x11vnc-0.9.16/src/gui.c:536:11: warning: Either the condition '!pipe' is redundant or there is possible null pointer dereference: pipe. [nullPointerRedundantCheck] x11vnc-0.9.16/src/gui.c:532:7: note: Assuming that condition '!pipe' is not redundant x11vnc-0.9.16/src/gui.c:536:11: note: Null pointer dereference x11vnc-0.9.16/src/gui.c:537:10: warning: Either the condition '!pipe' is redundant or there is possible null pointer dereference: pipe. [nullPointerRedundantCheck] x11vnc-0.9.16/src/gui.c:532:7: note: Assuming that condition '!pipe' is not redundant x11vnc-0.9.16/src/gui.c:537:10: note: Null pointer dereference x11vnc-0.9.16/src/gui.c:486:10: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/gui.c:274:54: note: Shadowed declaration x11vnc-0.9.16/src/gui.c:486:10: note: Shadow variable x11vnc-0.9.16/src/gui.c:717:15: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/gui.c:563:12: note: Shadowed declaration x11vnc-0.9.16/src/gui.c:717:15: note: Shadow variable x11vnc-0.9.16/src/gui.c:216:42: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/gui.c:216:53: style: Parameter 'manager' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/gui.c:446:9: style: Variable 'w' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:616:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:626:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:638:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:717:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:717:29: style: Variable 'p0' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:721:9: style: Variable 'dstr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:721:21: style: Variable 'wish' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/gui.c:526:12: error: Uninitialized variable: cmd [uninitvar] x11vnc-0.9.16/src/gui.c:261:13: style: Variable 'sig' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/inet.c:82:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/inet.c:422:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/inet.c:488:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/inet.c:661:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sock [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:229:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:464:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:2490:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:2642:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:2780:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:2831:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:2858:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:2953:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/keyboard.c:3090:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/inet.c:77:7: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] x11vnc-0.9.16/src/inet.c:470:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/inet.c:473:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/inet.c:478:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/inet.c:483:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/inet.c:252:6: style: Condition '!saddr_ip_str' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/inet.c:237:23: note: Assignment 'saddr_ip_str=NULL', assigned value is 0 x11vnc-0.9.16/src/inet.c:252:6: note: Condition '!saddr_ip_str' is always true x11vnc-0.9.16/src/inet.c:325:7: style: Condition 'block' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/inet.c:276:15: note: Assignment 'block=0', assigned value is 0 x11vnc-0.9.16/src/inet.c:325:7: note: Condition 'block' is always false x11vnc-0.9.16/src/inet.c:325:16: style: Condition 'refused' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/inet.c:277:17: note: Assignment 'refused=0', assigned value is 0 x11vnc-0.9.16/src/inet.c:325:16: note: Condition 'refused' is always false x11vnc-0.9.16/src/inet.c:441:12: style: Condition 'sock>=0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/inet.c:440:21: note: Calling function 'listen6' returns -1 x11vnc-0.9.16/src/inet.c:440:21: note: Assignment 'sock=listen6(port)', assigned value is -1 x11vnc-0.9.16/src/inet.c:441:12: note: Condition 'sock>=0' is always false x11vnc-0.9.16/src/inet.c:398:14: warning: Either the condition '!user' is redundant or there is possible null pointer dereference: user. [nullPointerRedundantCheck] x11vnc-0.9.16/src/inet.c:274:6: note: Assuming that condition '!user' is not redundant x11vnc-0.9.16/src/inet.c:398:14: note: Null pointer dereference x11vnc-0.9.16/src/inet.c:325:13: style: Same expression on both sides of '||' because 'block' and 'refused' represent the same value. [knownConditionTrueFalse] x11vnc-0.9.16/src/inet.c:276:15: note: 'block' is assigned value '0' here. x11vnc-0.9.16/src/inet.c:277:17: note: 'refused' is assigned value '0' here. x11vnc-0.9.16/src/inet.c:325:13: note: Same expression on both sides of '||' because 'block' and 'refused' represent the same value. x11vnc-0.9.16/src/inet.c:138:19: style:inconclusive: Function 'ipv6_ip' argument 1 names different: declaration 'host' definition 'host_in'. [funcArgNamesDifferent] x11vnc-0.9.16/src/inet.c:47:19: note: Function 'ipv6_ip' argument 1 names different: declaration 'host' definition 'host_in'. x11vnc-0.9.16/src/inet.c:138:19: note: Function 'ipv6_ip' argument 1 names different: declaration 'host' definition 'host_in'. x11vnc-0.9.16/src/inet.c:68:21: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:88:22: style: Parameter 'raw' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:108:20: style: Parameter 'raw' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:112:21: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:237:8: style: Variable 'saddr_ip_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/inet.c:268:24: style: Variable 'user' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/inet.c:451:8: style: Variable 'rhost' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/inet.c:451:16: style: Variable 'rport' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/inet.c:451:24: style: Variable 'lhost' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/inet.c:451:32: style: Variable 'lport' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/inet.c:512:41: style: Parameter 'paddr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:525:39: style: Parameter 'paddr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:659:23: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/inet.c:239:12: style: Variable 'saddr_len' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/inet.c:339:6: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/inet.c:382:7: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:154:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/linuxfb.c:276:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/linuxfb.c:153:3: error: Memory leak: file [memleak] x11vnc-0.9.16/src/linuxfb.c:176:3: error: Memory leak: atparms [memleak] x11vnc-0.9.16/src/linuxfb.c:259:3: error: Memory leak: in [memleak] x11vnc-0.9.16/src/linuxfb.c:269:2: error: Memory leak: in [memleak] x11vnc-0.9.16/src/linuxfb.c:151:7: style: Local variable 'fd' shadows outer argument [shadowArgument] x11vnc-0.9.16/src/linuxfb.c:60:37: note: Shadowed declaration x11vnc-0.9.16/src/linuxfb.c:151:7: note: Shadow variable x11vnc-0.9.16/src/linuxfb.c:333:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:335:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:337:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:339:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:341:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:343:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:345:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:347:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:349:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:351:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:353:10: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/linuxfb.c:356:11: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/keyboard.c:779:15: style: Condition 'ksym2=0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/keyboard.c:3242:32: style: Condition 'down' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/keyboard.c:3237:6: note: Assuming that condition '!down' is not redundant x11vnc-0.9.16/src/keyboard.c:3242:32: note: Condition 'down' is always false x11vnc-0.9.16/src/keyboard.c:3263:32: style: Condition 'down' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/keyboard.c:3271:32: style: Condition 'down' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/keyboard.c:3414:7: style: Condition 'new_kc' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/keyboard.c:3413:26: note: Calling function 'add_keysym' returns 0 x11vnc-0.9.16/src/keyboard.c:3413:26: note: Assignment 'new_kc=add_keysym(keysym)', assigned value is 0 x11vnc-0.9.16/src/keyboard.c:3414:7: note: Condition 'new_kc' is always false x11vnc-0.9.16/src/keyboard.c:657:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.16/src/keyboard.c:452:24: style: Local variable 'quiet' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/options.h:384:12: note: Shadowed declaration x11vnc-0.9.16/src/keyboard.c:452:24: note: Shadow variable x11vnc-0.9.16/src/keyboard.c:2446:13: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/keyboard.c:2431:8: note: Shadowed declaration x11vnc-0.9.16/src/keyboard.c:2446:13: note: Shadow variable x11vnc-0.9.16/src/keyboard.c:3182:10: style: Local variable 'k' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/keyboard.c:3066:10: note: Shadowed declaration x11vnc-0.9.16/src/keyboard.c:3182:10: note: Shadow variable x11vnc-0.9.16/src/keyboard.c:94:24: style: Parameter 'keystate' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/keyboard.c:912:68: style: Parameter 'new_kc' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/keyboard.c:2881:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/keyboard.c:2882:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/keyboard.c:3023:32: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/keyboard.c:886:10: style: struct member 'keychar::code' is never used. [unusedStructMember] x11vnc-0.9.16/src/keyboard.c:887:6: style: struct member 'keychar::group' is never used. [unusedStructMember] x11vnc-0.9.16/src/keyboard.c:888:6: style: struct member 'keychar::level' is never used. [unusedStructMember] x11vnc-0.9.16/src/keyboard.c:779:15: style: Variable 'ksym2' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/macosx.c:90:34: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:90:44: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:108:32: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:108:40: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:112:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:116:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:120:54: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:124:44: style: Parameter 'root_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:124:65: style: Parameter 'parent_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:125:45: style: Parameter 'nchildren_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/macosx.c:146:31: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/pm.c:150:26: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/pointer.c:137:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/pointer.c:764:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/pointer.c:1063:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/rates.c:91:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_NORMAL [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/rates.c:153:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_NORMAL [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/rates.c:427:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/pointer.c:124:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/pointer.c:197:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/pointer.c:1039:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/pointer.c:1051:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/pointer.c:128:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/pointer.c:93:10: note: Shadowed declaration x11vnc-0.9.16/src/pointer.c:128:8: note: Shadow variable x11vnc-0.9.16/src/pointer.c:915:8: style: Local variable 'sent' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/pointer.c:702:6: note: Shadowed declaration x11vnc-0.9.16/src/pointer.c:915:8: note: Shadow variable x11vnc-0.9.16/src/pointer.c:253:35: style: Parameter 'pointer_remap' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/pointer.c:625:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/pointer.c:1033:21: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/pointer.c:682:17: error: Uninitialized variable: s [legacyUninitvar] x11vnc-0.9.16/src/pointer.c:324:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/pointer.c:254:16: style: Unused variable: map [unusedVariable] x11vnc-0.9.16/src/rates.c:220:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/rates.c:235:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/rates.c:86:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/rates.c:148:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/rates.c:198:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/rates.c:384:15: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/scan.c:262:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:395:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:1562:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:1773:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2419:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2531:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2718:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2797:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2892:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2938:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:2984:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:3021:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbMaxClientWait [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:3154:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:3186:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:97:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:223:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:481:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_LOOPBACK [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:516:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:591:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:1209:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/remote.c:167:5: warning:inconclusive: The buffer 'line' may not be null-terminated after the call to strncpy(). [terminateStrncpy] x11vnc-0.9.16/src/remote.c:274:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:278:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:283:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:290:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:314:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:317:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:324:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:376:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:388:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:918:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:930:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:963:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:970:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/remote.c:2079:23: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] x11vnc-0.9.16/src/remote.c:862:7: style: Condition '!remote_control_access_ok()' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/remote.c:862:33: note: Calling function 'remote_control_access_ok' returns 0 x11vnc-0.9.16/src/remote.c:862:7: note: Condition '!remote_control_access_ok()' is always true x11vnc-0.9.16/src/remote.c:2396:10: style: Condition '0&&!strcmp(blackout_str,"")' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/remote.c:235:4: error: Memory leak: rcmd [memleak] x11vnc-0.9.16/src/remote.c:240:3: error: Memory leak: rcmd [memleak] x11vnc-0.9.16/src/remote.c:1095:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/remote.c:6200:4: style:inconclusive: Statements following 'goto' will never be executed. [unreachableCode] x11vnc-0.9.16/src/remote.c:220:9: style: Variable 'res' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:233:9: style: Variable 'res' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:261:42: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/remote.c:262:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:301:45: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/remote.c:302:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:368:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:958:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:1952:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:1994:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:3847:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:3866:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:3903:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:3922:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:4387:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:4567:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:4615:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:5833:11: style: Variable 'd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:6037:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/remote.c:6170:8: style: Unused variable: wx [unusedVariable] x11vnc-0.9.16/src/remote.c:6170:12: style: Unused variable: wy [unusedVariable] x11vnc-0.9.16/src/remote.c:6172:14: style: Unused variable: c [unusedVariable] x11vnc-0.9.16/src/screen.c:135:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:160:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:196:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:402:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:662:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable root [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:814:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:862:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbClientPtr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:999:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1025:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1281:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1353:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1376:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1433:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1491:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1665:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:3057:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputMutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:3270:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:3806:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:3867:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:3969:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:4165:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:4264:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:4376:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/scan.c:416:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] x11vnc-0.9.16/src/scan.c:1086:18: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1084. [multiCondition] x11vnc-0.9.16/src/scan.c:1084:18: note: first condition x11vnc-0.9.16/src/scan.c:1086:18: note: else if condition is opposite to first condition x11vnc-0.9.16/src/scan.c:1128:19: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1126. [multiCondition] x11vnc-0.9.16/src/scan.c:1126:19: note: first condition x11vnc-0.9.16/src/scan.c:1128:19: note: else if condition is opposite to first condition x11vnc-0.9.16/src/scan.c:395:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/scan.c:393:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/scan.c:395:6: note: Condition 'db' is always false x11vnc-0.9.16/src/scan.c:1659:8: style: Condition 'debug' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/scan.c:1651:15: note: Assignment 'debug=0', assigned value is 0 x11vnc-0.9.16/src/scan.c:1659:8: note: Condition 'debug' is always false x11vnc-0.9.16/src/scan.c:3208:21: style: Condition 'xd_do_check&&0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/scan.c:1651:7: style: Local variable 'debug' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/options.h:41:12: note: Shadowed declaration x11vnc-0.9.16/src/scan.c:1651:7: note: Shadow variable x11vnc-0.9.16/src/scan.c:1731:7: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/scan.c:1711:16: note: Shadowed declaration x11vnc-0.9.16/src/scan.c:1731:7: note: Shadow variable x11vnc-0.9.16/src/scan.c:374:34: style: Parameter 'shm' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/scan.c:3403:31: style: Modulo of one is always equal to zero [moduloofone] x11vnc-0.9.16/src/scan.c:1479:6: style: Variable 'dst' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/selection.c:90:32: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/selection.c:90:42: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/selection.c:259:55: style: Parameter 'sel' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/selection.c:374:29: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/selection.c:510:29: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/screen.c:776:7: style: Condition 'use_real_ximage' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/screen.c:775:25: note: Assignment 'use_real_ximage=0', assigned value is 0 x11vnc-0.9.16/src/screen.c:776:7: note: Condition 'use_real_ximage' is always false x11vnc-0.9.16/src/screen.c:3685:13: style: Condition 'got_rfbport' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/screen.c:4264:7: style: Condition '0&&dt>0.0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/screen.c:4314:33: style: Condition 'dm>40' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/screen.c:4307:46: note: Assuming that condition 'dm>20' is not redundant x11vnc-0.9.16/src/screen.c:4314:33: note: Condition 'dm>40' is always false x11vnc-0.9.16/src/screen.c:4344:24: style: Condition 'set_defer<=-1' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/screen.c:4340:6: note: Assuming that condition 'set_defer' is not redundant x11vnc-0.9.16/src/screen.c:4344:24: note: Condition 'set_defer<=-1' is always true x11vnc-0.9.16/src/screen.c:1740:3: error: Memory leak: rstr [memleak] x11vnc-0.9.16/src/screen.c:1742:3: error: Memory leak: rstr [memleak] x11vnc-0.9.16/src/screen.c:1745:3: error: Memory leak: rstr [memleak] x11vnc-0.9.16/src/screen.c:1747:3: error: Memory leak: rstr [memleak] x11vnc-0.9.16/src/screen.c:1749:3: error: Memory leak: rstr [memleak] x11vnc-0.9.16/src/screen.c:4335:7: style: Redundant initialization for 'msec'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.16/src/screen.c:4176:38: note: msec is initialized x11vnc-0.9.16/src/screen.c:4335:7: note: msec is overwritten x11vnc-0.9.16/src/solid.c:106:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/solid.c:137:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/screen.c:1754:8: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/screen.c:1640:8: note: Shadowed declaration x11vnc-0.9.16/src/screen.c:1754:8: note: Shadow variable x11vnc-0.9.16/src/screen.c:1756:17: style: Local variable 'w' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/screen.c:1641:6: note: Shadowed declaration x11vnc-0.9.16/src/screen.c:1756:17: note: Shadow variable x11vnc-0.9.16/src/screen.c:1756:27: style: Local variable 'h' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/screen.c:1641:9: note: Shadowed declaration x11vnc-0.9.16/src/screen.c:1756:27: note: Shadow variable x11vnc-0.9.16/src/screen.c:1782:8: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/screen.c:1640:8: note: Shadowed declaration x11vnc-0.9.16/src/screen.c:1782:8: note: Shadow variable x11vnc-0.9.16/src/screen.c:1785:17: style: Local variable 'w' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/screen.c:1641:6: note: Shadowed declaration x11vnc-0.9.16/src/screen.c:1785:17: note: Shadow variable x11vnc-0.9.16/src/screen.c:1785:27: style: Local variable 'h' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/screen.c:1641:9: note: Shadowed declaration x11vnc-0.9.16/src/screen.c:1785:27: note: Shadow variable x11vnc-0.9.16/src/screen.c:368:36: style: Parameter 'fb' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/screen.c:426:30: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/screen.c:1162:34: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_bell' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.16/src/screen.c:1497:17: note: You might need to cast the function pointer here x11vnc-0.9.16/src/screen.c:1162:34: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.16/src/screen.c:1179:42: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_recv_cuttext' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.16/src/screen.c:1505:24: note: You might need to cast the function pointer here x11vnc-0.9.16/src/screen.c:1179:42: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.16/src/screen.c:1194:40: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_got_update' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.16/src/screen.c:1495:33: note: You might need to cast the function pointer here x11vnc-0.9.16/src/screen.c:1194:40: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.16/src/screen.c:1206:45: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_got_cursorshape' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.16/src/screen.c:1506:27: note: You might need to cast the function pointer here x11vnc-0.9.16/src/screen.c:1206:45: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.16/src/screen.c:1272:43: style: Parameter 'cl' can be declared as pointer to const. However it seems that 'vnc_reflect_cursor_pos' is a callback function, if 'cl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.16/src/screen.c:1494:28: note: You might need to cast the function pointer here x11vnc-0.9.16/src/screen.c:1272:43: note: Parameter 'cl' can be declared as pointer to const x11vnc-0.9.16/src/screen.c:1328:12: style: Variable '_buffer' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:1329:12: style: Variable '_buffer' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:1330:12: style: Variable '_buffer' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:1422:50: style: Parameter 'client' can be declared as pointer to const. However it seems that 'vnc_reflect_get_password' is a callback function, if 'client' is declared with const you might also need to cast function pointer(s). [constParameterCallback] x11vnc-0.9.16/src/screen.c:1510:25: note: You might need to cast the function pointer here x11vnc-0.9.16/src/screen.c:1422:50: note: Parameter 'client' can be declared as pointer to const x11vnc-0.9.16/src/screen.c:1471:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:1522:10: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:1648:8: style: Variable 'unlink_me' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:2805:31: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/screen.c:3774:8: style: Variable 'tvdt' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:3839:66: style: Parameter 'extra' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/screen.c:3842:8: style: Variable 'phost' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:3843:8: style: Variable 'jvu' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/screen.c:1136:11: warning: Uninitialized variable: w [uninitvar] x11vnc-0.9.16/src/screen.c:1131:13: note: Assuming condition is true x11vnc-0.9.16/src/screen.c:1136:11: note: Uninitialized variable: w x11vnc-0.9.16/src/screen.c:1137:11: warning: Uninitialized variable: h [uninitvar] x11vnc-0.9.16/src/screen.c:1131:13: note: Assuming condition is true x11vnc-0.9.16/src/screen.c:1137:11: note: Uninitialized variable: h x11vnc-0.9.16/src/screen.c:1762:7: warning: Uninitialized variable: val [uninitvar] x11vnc-0.9.16/src/screen.c:1757:13: note: Assuming condition is false x11vnc-0.9.16/src/screen.c:1762:7: note: Uninitialized variable: val x11vnc-0.9.16/src/solid.c:284:2: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/solid.c:59:7: style: Variable 'addpath' can be declared as const array [constVariable] x11vnc-0.9.16/src/solid.c:157:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:177:26: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:287:29: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:556:8: style: Variable 'dbus_env' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/solid.c:651:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:768:30: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:992:29: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:1294:27: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/solid.c:557:7: style: Unused variable: tmp [unusedVariable] x11vnc-0.9.16/src/solid.c:1170:13: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/solid.c:1171:20: style: Variable 'parent' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/solid.c:1171:8: style: Unused variable: pid [unusedVariable] x11vnc-0.9.16/src/sslcmds.c:577:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslcmds.c:586:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslcmds.c:679:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:148:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:177:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:203:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:2792:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:2901:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INADDR_ANY [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:3062:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:3154:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:3212:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:3386:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/enc.h:327:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/enc.h:625:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/enc.h:2101:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/enc.h:2130:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/sslhelper.c:213:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/sslhelper.c:223:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/sslhelper.c:592:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/sslhelper.c:616:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] x11vnc-0.9.16/src/sslhelper.c:654:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/sslhelper.c:3165:6: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/sslhelper.c:3163:6: note: First condition x11vnc-0.9.16/src/sslhelper.c:3165:6: note: Second condition x11vnc-0.9.16/src/sslhelper.c:3713:8: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/sslhelper.c:3711:8: note: First condition x11vnc-0.9.16/src/sslhelper.c:3713:8: note: Second condition x11vnc-0.9.16/src/sslhelper.c:4238:7: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/sslhelper.c:4237:7: note: First condition x11vnc-0.9.16/src/sslhelper.c:4238:7: note: Second condition x11vnc-0.9.16/src/sslhelper.c:4239:7: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/sslhelper.c:4238:7: note: First condition x11vnc-0.9.16/src/sslhelper.c:4239:7: note: Second condition x11vnc-0.9.16/src/sslhelper.c:3999:9: style: Condition '0&&certret_str' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/sslhelper.c:4079:8: style: Condition 'rcookie' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/sslhelper.c:4127:12: style: Condition '0&&saw_httpsock' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/sslhelper.c:4177:12: style: Condition '0&&saw_httpsock' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/sslhelper.c:288:3: error: Memory leak: C [memleak] x11vnc-0.9.16/src/sslhelper.c:288:3: error: Memory leak: L [memleak] x11vnc-0.9.16/src/sslhelper.c:288:3: error: Memory leak: OU [memleak] x11vnc-0.9.16/src/sslhelper.c:288:3: error: Memory leak: O [memleak] x11vnc-0.9.16/src/sslhelper.c:288:3: error: Memory leak: CN [memleak] x11vnc-0.9.16/src/sslhelper.c:288:3: error: Memory leak: EM [memleak] x11vnc-0.9.16/src/sslhelper.c:456:4: error: Memory leak: pathcrt [memleak] x11vnc-0.9.16/src/sslhelper.c:467:4: error: Memory leak: pathcrt [memleak] x11vnc-0.9.16/src/sslhelper.c:4396:10: error: Memory leak: cipher [memleak] x11vnc-0.9.16/src/sslhelper.c:98:13: warning: Either the condition '!save' is redundant or there is possible null pointer dereference: save. [nullPointerRedundantCheck] x11vnc-0.9.16/src/sslhelper.c:93:6: note: Assuming that condition '!save' is not redundant x11vnc-0.9.16/src/sslhelper.c:98:13: note: Null pointer dereference x11vnc-0.9.16/src/sslhelper.c:122:15: warning: Either the condition '!cdir' is redundant or there is possible null pointer dereference: cdir. [nullPointerRedundantCheck] x11vnc-0.9.16/src/sslhelper.c:117:6: note: Assuming that condition '!cdir' is not redundant x11vnc-0.9.16/src/sslhelper.c:122:15: note: Null pointer dereference x11vnc-0.9.16/src/sslhelper.c:125:35: warning: Either the condition '!cdir' is redundant or there is possible null pointer dereference: cdir. [nullPointerRedundantCheck] x11vnc-0.9.16/src/sslhelper.c:117:6: note: Assuming that condition '!cdir' is not redundant x11vnc-0.9.16/src/sslhelper.c:125:35: note: Null pointer dereference x11vnc-0.9.16/src/sslhelper.c:4096:9: style:inconclusive: Same expression used in consecutive assignments of 'origport' and 'useport'. [duplicateAssignExpression] x11vnc-0.9.16/src/sslhelper.c:4097:9: note: Same expression used in consecutive assignments of 'origport' and 'useport'. x11vnc-0.9.16/src/sslhelper.c:4096:9: note: Same expression used in consecutive assignments of 'origport' and 'useport'. x11vnc-0.9.16/src/sslhelper.c:88:27: style:inconclusive: Function 'get_saved_pem' argument 1 names different: declaration 'string' definition 'save'. [funcArgNamesDifferent] x11vnc-0.9.16/src/sslhelper.c:81:27: note: Function 'get_saved_pem' argument 1 names different: declaration 'string' definition 'save'. x11vnc-0.9.16/src/sslhelper.c:88:27: note: Function 'get_saved_pem' argument 1 names different: declaration 'string' definition 'save'. x11vnc-0.9.16/src/sslhelper.c:238:28: style:inconclusive: Function 'create_tmp_pem' argument 1 names different: declaration 'path' definition 'pathin'. [funcArgNamesDifferent] x11vnc-0.9.16/src/sslhelper.c:84:28: note: Function 'create_tmp_pem' argument 1 names different: declaration 'path' definition 'pathin'. x11vnc-0.9.16/src/sslhelper.c:238:28: note: Function 'create_tmp_pem' argument 1 names different: declaration 'path' definition 'pathin'. x11vnc-0.9.16/src/sslhelper.c:2688:12: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.16/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:2688:12: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:2745:12: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.16/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:2745:12: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:3562:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/sslhelper.c:3301:17: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:3562:7: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:3660:8: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/sslhelper.c:3301:14: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:3660:8: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:3730:10: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/sslhelper.c:3660:8: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:3730:10: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:4063:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/sslhelper.c:3301:17: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:4063:8: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:4389:8: style: Local variable 'cipher' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/enc.h:265:14: note: Shadowed declaration x11vnc-0.9.16/src/sslhelper.c:4389:8: note: Shadow variable x11vnc-0.9.16/src/sslhelper.c:89:26: style: Variable 'cdir' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:170:30: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/sslhelper.c:195:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:195:25: style: Variable 'gp' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:198:7: style: Variable 'extra' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslhelper.c:245:8: style: Variable 'days' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:247:7: style: Variable 'tmpl' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslhelper.c:548:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:548:18: style: Variable 'cdir' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:618:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:3310:7: style: Variable 'uniq' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslhelper.c:3318:17: style: Variable 'rb' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:3716:10: style: Variable 'reply' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslhelper.c:3760:10: style: Variable 'reply' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslhelper.c:3889:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:4036:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslhelper.c:4101:12: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/enc.h:2078:37: style: Parameter 'argv' can be declared as const array [constParameter] x11vnc-0.9.16/src/sslhelper.c:350:8: style: Variable 'days' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslhelper.c:352:8: style: Variable 'days' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslhelper.c:239:8: style: Unused variable: pid [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:239:13: style: Unused variable: pidw [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:244:22: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:2999:21: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:3023:11: style: Unused variable: wret [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:3424:8: style: Variable 'sock' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslhelper.c:3738:8: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslhelper.c:4284:9: style: Variable 'sz' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslhelper.c:4284:34: style: Variable 'db' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslhelper.c:4283:7: style: Unused variable: buf0 [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:4284:17: style: Unused variable: n [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:4284:20: style: Unused variable: m [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:4284:23: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/sslhelper.c:4285:8: style: Unused variable: buf [unusedVariable] x11vnc-0.9.16/src/enc.h:618:16: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/sslcmds.c:448:19: style: Condition 'start_stunnel(rport,xport,hport,xhport)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/sslcmds.c:448:19: note: Calling function 'start_stunnel' returns 0 x11vnc-0.9.16/src/sslcmds.c:448:19: note: Condition 'start_stunnel(rport,xport,hport,xhport)' is always false x11vnc-0.9.16/src/sslcmds.c:647:32: style:inconclusive: Function 'sslEncKey' argument 2 names different: declaration 'info_only' definition 'mode'. [funcArgNamesDifferent] x11vnc-0.9.16/src/sslcmds.c:59:32: note: Function 'sslEncKey' argument 2 names different: declaration 'info_only' definition 'mode'. x11vnc-0.9.16/src/sslcmds.c:647:32: note: Function 'sslEncKey' argument 2 names different: declaration 'info_only' definition 'mode'. x11vnc-0.9.16/src/sslcmds.c:547:14: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:483:12: note: Shadowed declaration x11vnc-0.9.16/src/sslcmds.c:547:14: note: Shadow variable x11vnc-0.9.16/src/sslcmds.c:595:14: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:483:12: note: Shadowed declaration x11vnc-0.9.16/src/sslcmds.c:595:14: note: Shadow variable x11vnc-0.9.16/src/sslcmds.c:612:14: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:483:12: note: Shadowed declaration x11vnc-0.9.16/src/sslcmds.c:612:14: note: Shadow variable x11vnc-0.9.16/src/sslcmds.c:649:8: style: Local variable 'scr' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:483:12: note: Shadowed declaration x11vnc-0.9.16/src/sslcmds.c:649:8: note: Shadow variable x11vnc-0.9.16/src/sslcmds.c:654:13: style: Local variable 'depth' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.h:488:17: note: Shadowed declaration x11vnc-0.9.16/src/sslcmds.c:654:13: note: Shadow variable x11vnc-0.9.16/src/sslcmds.c:483:15: style: Variable 'home' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/sslcmds.c:486:8: style: Variable 'cases1' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslcmds.c:487:8: style: Variable 'cases2' can be declared as const array [constVariable] x11vnc-0.9.16/src/sslcmds.c:545:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/sslcmds.c:545:57: style: Parameter 'script' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/sslcmds.c:75:7: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/sslcmds.c:379:6: style: Unused variable: status [unusedVariable] x11vnc-0.9.16/src/uinput.c:179:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/uinput.c:672:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/uinput.c:914:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/uinput.c:1015:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:366:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:387:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:600:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:683:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:884:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:1457:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:1577:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:1733:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:2120:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/unixpw.c:2156:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/uinput.c:336:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/uinput.c:341:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/uinput.c:614:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/uinput.c:705:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/uinput.c:179:36: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:179:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:179:17: note: Assignment 'i=lookup_code(XK_Shift_L)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:179:36: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:180:36: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:180:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:180:17: note: Assignment 'i=lookup_code(XK_Shift_R)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:180:36: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:181:38: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:181:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:181:17: note: Assignment 'i=lookup_code(XK_Control_L)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:181:38: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:182:38: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:182:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:182:17: note: Assignment 'i=lookup_code(XK_Control_R)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:182:38: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:183:34: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:183:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:183:17: note: Assignment 'i=lookup_code(XK_Alt_L)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:183:34: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:184:34: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:184:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:184:17: note: Assignment 'i=lookup_code(XK_Alt_R)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:184:34: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:185:35: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:185:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:185:17: note: Assignment 'i=lookup_code(XK_Meta_L)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:185:35: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:186:35: style: Condition '0<=i' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:186:17: note: Calling function 'lookup_code' returns -1 x11vnc-0.9.16/src/uinput.c:186:17: note: Assignment 'i=lookup_code(XK_Meta_R)', assigned value is -1 x11vnc-0.9.16/src/uinput.c:186:35: note: Condition '0<=i' is always false x11vnc-0.9.16/src/uinput.c:868:10: style: Condition '1||inside_thresh(dx,dy,thresh_mid)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:1065:8: style: Condition 'bigjump' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/uinput.c:1052:26: note: Assignment 'bigjump=1', assigned value is 1 x11vnc-0.9.16/src/uinput.c:1065:8: note: Condition 'bigjump' is always true x11vnc-0.9.16/src/uinput.c:330:32: warning: Either the condition 'f==NULL' is redundant or there is possible null pointer dereference: f. [nullPointerRedundantCheck] x11vnc-0.9.16/src/uinput.c:325:8: note: Assuming that condition 'f==NULL' is not redundant x11vnc-0.9.16/src/uinput.c:330:32: note: Null pointer dereference x11vnc-0.9.16/src/uinput.c:928:9: style: Variable 'dxf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.16/src/uinput.c:927:9: note: dxf is assigned x11vnc-0.9.16/src/uinput.c:928:9: note: dxf is overwritten x11vnc-0.9.16/src/uinput.c:931:9: style: Variable 'dxf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.16/src/uinput.c:930:9: note: dxf is assigned x11vnc-0.9.16/src/uinput.c:931:9: note: dxf is overwritten x11vnc-0.9.16/src/uinput.c:936:9: style: Variable 'dyf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.16/src/uinput.c:935:9: note: dyf is assigned x11vnc-0.9.16/src/uinput.c:936:9: note: dyf is overwritten x11vnc-0.9.16/src/uinput.c:939:9: style: Variable 'dyf' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.16/src/uinput.c:938:9: note: dyf is assigned x11vnc-0.9.16/src/uinput.c:939:9: note: dyf is overwritten x11vnc-0.9.16/src/uinput.c:597:29: style:inconclusive: Function 'parse_uinput_str' argument 1 names different: declaration 'str' definition 'in'. [funcArgNamesDifferent] x11vnc-0.9.16/src/uinput.c:79:29: note: Function 'parse_uinput_str' argument 1 names different: declaration 'str' definition 'in'. x11vnc-0.9.16/src/uinput.c:597:29: note: Function 'parse_uinput_str' argument 1 names different: declaration 'str' definition 'in'. x11vnc-0.9.16/src/uinput.c:1048:14: style: Local variable 'first' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/uinput.c:1003:13: note: Shadowed declaration x11vnc-0.9.16/src/uinput.c:1048:14: note: Shadow variable x11vnc-0.9.16/src/uinput.c:236:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/uinput.c:305:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/uinput.c:597:29: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/uinput.c:1004:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/unixpw.c:671:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.16/src/unixpw.c:726:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:728:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:746:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2089:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2092:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2098:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2108:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2117:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2139:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2176:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:2182:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/unixpw.c:1467:19: style: Condition 'crypt_verify(user,pass)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/unixpw.c:1467:19: note: Calling function 'crypt_verify' returns 0 x11vnc-0.9.16/src/unixpw.c:1467:19: note: Condition 'crypt_verify(user,pass)' is always false x11vnc-0.9.16/src/unixpw.c:1480:16: style: Condition 'su_verify(user,pass,NULL,NULL,NULL,1)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/unixpw.c:1480:16: note: Calling function 'su_verify' returns 0 x11vnc-0.9.16/src/unixpw.c:1480:16: note: Condition 'su_verify(user,pass,NULL,NULL,NULL,1)' is always false x11vnc-0.9.16/src/unixpw.c:395:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] x11vnc-0.9.16/src/unixpw.c:397:4: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.16/src/unixpw.c:395:9: note: Found duplicate branches for 'if' and 'else'. x11vnc-0.9.16/src/unixpw.c:1667:19: style: Local variable 'nmax' shadows outer function [shadowFunction] x11vnc-0.9.16/src/util.h:40:12: note: Shadowed declaration x11vnc-0.9.16/src/unixpw.c:1667:19: note: Shadow variable x11vnc-0.9.16/src/unixpw.c:1913:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/unixpw.c:1667:12: note: Shadowed declaration x11vnc-0.9.16/src/unixpw.c:1913:8: note: Shadow variable x11vnc-0.9.16/src/unixpw.c:1918:10: style: Local variable 'str' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/unixpw.c:1672:8: note: Shadowed declaration x11vnc-0.9.16/src/unixpw.c:1918:10: note: Shadow variable x11vnc-0.9.16/src/unixpw.c:686:25: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:719:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/unixpw.c:759:24: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:759:36: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:956:21: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:956:33: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:956:45: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:956:56: style: Parameter 'rbuf' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:956:67: style: Parameter 'rbuf_size' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:1522:8: style: Variable 'prefs' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/unixpw.c:1672:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/unixpw.c:1808:10: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/unixpw.c:2057:31: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/unixpw.c:2175:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/unixpw.c:513:9: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/unixpw.c:513:24: style: Variable 'ndevs' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/unixpw.c:512:8: style: Unused variable: slave [unusedVariable] x11vnc-0.9.16/src/unixpw.c:513:15: style: Unused variable: i [unusedVariable] x11vnc-0.9.16/src/unixpw.c:513:29: style: Unused variable: tmp [unusedVariable] x11vnc-0.9.16/src/unixpw.c:671:13: style: Variable 'sig' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/unixpw.c:1522:14: style: Variable 'prefs' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/user.c:956:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1138:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1180:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1385:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbMaxClientWait [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1464:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1607:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1665:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1870:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:1896:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:2456:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:2520:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:2901:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RFB_PROTOCOL_VERSION [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/user.c:2950:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:918:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:1088:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:1210:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:1480:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:1878:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:2062:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:2188:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:2374:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:2560:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:2751:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:3081:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:3190:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:3692:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x1 [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:3835:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:3897:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:4137:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:4279:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:4389:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:5177:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:5350:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:5406:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbFramebufferUpdate [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:5508:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:5662:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:224:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:228:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:296:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:308:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:358:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:362:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:596:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:598:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:605:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/userinput.c:627:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:1833:7: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.16/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.16/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.16/src/user.c:1833:7: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.16/src/user.c:1837:13: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.16/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.16/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.16/src/user.c:1837:13: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.16/src/user.c:1838:67: error: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.16/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.16/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.16/src/user.c:1838:67: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.16/src/user.c:1842:67: error:inconclusive: Using pointer to local variable 'num' that is out of scope. [invalidLifetime] x11vnc-0.9.16/src/user.c:1831:7: note: Array decayed to pointer here. x11vnc-0.9.16/src/user.c:1829:8: note: Variable created here. x11vnc-0.9.16/src/user.c:1842:67: note: Using pointer to local variable 'num' that is out of scope. x11vnc-0.9.16/src/user.c:264:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:268:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:315:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] x11vnc-0.9.16/src/user.c:449:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:452:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:591:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:594:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:855:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:862:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:1277:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:1390:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2357:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2363:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2402:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2408:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2440:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2449:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/user.c:2682:5: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/user.c:2681:5: note: First condition x11vnc-0.9.16/src/user.c:2682:5: note: Second condition x11vnc-0.9.16/src/user.c:504:28: style: Condition 'try_user_and_display(uid,gid,dpystr)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:504:28: note: Calling function 'try_user_and_display' returns 0 x11vnc-0.9.16/src/user.c:504:28: note: Condition 'try_user_and_display(uid,gid,dpystr)' is always false x11vnc-0.9.16/src/user.c:1300:10: style: Condition '0&&strstr(p,"display=")==p' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:1303:17: style: Condition '0&&strstr(p,"auth=")==p' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:1306:17: style: Condition '0&&!strcmp(p,"shared")' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:1469:15: style: Condition 'use_openssl' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:2268:13: style: Condition 'strcmp(upeer,"")' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:1942:14: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.16/src/user.c:2230:11: error: Memory leak: str [memleak] x11vnc-0.9.16/src/user.c:2236:11: error: Memory leak: str [memleak] x11vnc-0.9.16/src/user.c:2242:12: error: Memory leak: str [memleak] x11vnc-0.9.16/src/user.c:2246:11: error: Memory leak: str [memleak] x11vnc-0.9.16/src/user.c:2635:4: error: Resource leak: p [resourceLeak] x11vnc-0.9.16/src/user.c:320:13: warning: Either the condition '!gr' is redundant or there is possible null pointer dereference: gr. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:316:10: note: Assuming that condition '!gr' is not redundant x11vnc-0.9.16/src/user.c:320:13: note: Null pointer dereference x11vnc-0.9.16/src/user.c:2588:12: warning: Either the condition '!mt' is redundant or there is possible null pointer dereference: mt. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:2583:8: note: Assuming that condition '!mt' is not redundant x11vnc-0.9.16/src/user.c:2588:12: note: Null pointer dereference x11vnc-0.9.16/src/user.c:2589:11: warning: Either the condition '!mt' is redundant or there is possible null pointer dereference: mt. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:2583:8: note: Assuming that condition '!mt' is not redundant x11vnc-0.9.16/src/user.c:2589:11: note: Null pointer dereference x11vnc-0.9.16/src/user.c:2725:34: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:2717:7: note: Assuming that condition '!p' is not redundant x11vnc-0.9.16/src/user.c:2725:34: note: Null pointer dereference x11vnc-0.9.16/src/user.c:2750:12: warning: Either the condition '!mt' is redundant or there is possible null pointer dereference: mt. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:2742:8: note: Assuming that condition '!mt' is not redundant x11vnc-0.9.16/src/user.c:2750:12: note: Null pointer dereference x11vnc-0.9.16/src/user.c:2751:11: warning: Either the condition '!mt' is redundant or there is possible null pointer dereference: mt. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:2742:8: note: Assuming that condition '!mt' is not redundant x11vnc-0.9.16/src/user.c:2751:11: note: Null pointer dereference x11vnc-0.9.16/src/user.c:2766:35: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/user.c:2758:8: note: Assuming that condition '!p' is not redundant x11vnc-0.9.16/src/user.c:2766:35: note: Null pointer dereference x11vnc-0.9.16/src/user.c:1837:14: warning: Either the condition '!q' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] x11vnc-0.9.16/src/user.c:1833:6: note: Assuming that condition '!q' is not redundant x11vnc-0.9.16/src/user.c:1837:14: note: Null pointer addition x11vnc-0.9.16/src/user.c:1740:12: style: The comparison 'pid == 0' is always true. [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:1709:15: note: 'pid' is assigned value '0' here. x11vnc-0.9.16/src/user.c:1740:12: note: The comparison 'pid == 0' is always true. x11vnc-0.9.16/src/user.c:1767:11: style: The comparison 'pid > 0' is always false. [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:1709:15: note: 'pid' is assigned value '0' here. x11vnc-0.9.16/src/user.c:1767:11: note: The comparison 'pid > 0' is always false. x11vnc-0.9.16/src/user.c:812:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] x11vnc-0.9.16/src/user.c:421:11: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/user.c:368:8: note: Shadowed declaration x11vnc-0.9.16/src/user.c:421:11: note: Shadow variable x11vnc-0.9.16/src/user.c:2054:8: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/user.c:1992:13: note: Shadowed declaration x11vnc-0.9.16/src/user.c:2054:8: note: Shadow variable x11vnc-0.9.16/src/user.c:2061:8: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/user.c:1992:13: note: Shadowed declaration x11vnc-0.9.16/src/user.c:2061:8: note: Shadow variable x11vnc-0.9.16/src/user.c:2074:11: style: Local variable 'p' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/user.c:1992:13: note: Shadowed declaration x11vnc-0.9.16/src/user.c:2074:11: note: Shadow variable x11vnc-0.9.16/src/user.c:3025:10: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/user.c:2926:14: note: Shadowed declaration x11vnc-0.9.16/src/user.c:3025:10: note: Shadow variable x11vnc-0.9.16/src/user.c:253:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:276:8: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:315:20: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:368:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:421:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:537:9: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:557:8: style: Variable 'dstr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:557:15: style: Variable 'd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:558:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:652:61: style: Parameter 'dpystr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/user.c:1254:31: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/user.c:1824:33: style: Parameter 'vnc_redirect_test' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/user.c:1958:37: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/user.c:1958:80: style: Parameter 'tmp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/user.c:2172:9: style: Variable 'uu' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:2356:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:2401:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/user.c:2424:31: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/user.c:2426:8: style: Variable 'create_display_extra' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:1540:8: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/userinput.c:1536:8: note: First condition x11vnc-0.9.16/src/userinput.c:1540:8: note: Second condition x11vnc-0.9.16/src/user.c:2427:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:1544:8: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/userinput.c:1540:8: note: First condition x11vnc-0.9.16/src/userinput.c:1544:8: note: Second condition x11vnc-0.9.16/src/user.c:2510:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:4734:5: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/userinput.c:4733:5: note: First condition x11vnc-0.9.16/src/userinput.c:4734:5: note: Second condition x11vnc-0.9.16/src/userinput.c:400:7: style: Condition 'ok' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:371:21: note: Assignment 'ok=0', assigned value is 0 x11vnc-0.9.16/src/userinput.c:400:7: note: Condition 'ok' is always false x11vnc-0.9.16/src/user.c:275:30: style: Variable 'gotgroup' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:1074:5: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:1072:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/userinput.c:1074:5: note: Condition 'db' is always false x11vnc-0.9.16/src/userinput.c:1306:30: style: Condition '!xrecord_name_info' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/user.c:326:15: style: Variable 'gotgroup' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:1909:17: style: Condition 'c==1' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:1905:10: note: Assuming that condition 'c==0' is not redundant x11vnc-0.9.16/src/userinput.c:1900:16: note: Assuming that condition 'c<2' is not redundant x11vnc-0.9.16/src/userinput.c:1909:17: note: Condition 'c==1' is always true x11vnc-0.9.16/src/userinput.c:1923:9: style: Condition 'cmap8to24' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:2890:10: style: Condition '0&&button_up_time>0.0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3263:10: style: Condition '0&&dt_bad' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3724:8: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3722:13: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/userinput.c:3724:8: note: Condition 'db' is always false x11vnc-0.9.16/src/userinput.c:3766:15: style: Condition '*nidx_in==-1' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3752:14: note: Assignment '*nidx_in=-1', assigned value is -1 x11vnc-0.9.16/src/userinput.c:3758:13: note: Assuming condition is false x11vnc-0.9.16/src/userinput.c:3766:15: note: Condition '*nidx_in==-1' is always true x11vnc-0.9.16/src/userinput.c:3769:12: style: Condition 'nidx<0' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3767:26: note: Calling function 'lookup_win_index' returns -1 x11vnc-0.9.16/src/userinput.c:3767:26: note: Assignment 'nidx=lookup_win_index(orig_frame)', assigned value is -1 x11vnc-0.9.16/src/userinput.c:3769:12: note: Condition 'nidx<0' is always true x11vnc-0.9.16/src/userinput.c:3776:11: style: Condition 'nidx>0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3770:27: note: Calling function 'lookup_win_index' returns -1 x11vnc-0.9.16/src/userinput.c:3770:27: note: Assignment 'nidx=lookup_win_index(frame)', assigned value is -1 x11vnc-0.9.16/src/userinput.c:3776:11: note: Condition 'nidx>0' is always false x11vnc-0.9.16/src/userinput.c:3787:8: style: Condition '!find_rect(nidx,x,y,w,h)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3787:18: note: Calling function 'find_rect' returns 0 x11vnc-0.9.16/src/userinput.c:3787:8: note: Condition '!find_rect(nidx,x,y,w,h)' is always true x11vnc-0.9.16/src/user.c:762:15: style: Variable 'reset_fb' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3796:12: style: Condition 'bs_x<0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3786:12: note: Assuming that condition 'bs_x<0' is not redundant x11vnc-0.9.16/src/userinput.c:3796:12: note: Condition 'bs_x<0' is always false x11vnc-0.9.16/src/userinput.c:3897:5: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3882:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/userinput.c:3897:5: note: Condition 'db' is always false x11vnc-0.9.16/src/userinput.c:3900:8: style: Condition '!find_rect(nidx,x,y,w,h)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3900:18: note: Calling function 'find_rect' returns 0 x11vnc-0.9.16/src/userinput.c:3900:8: note: Condition '!find_rect(nidx,x,y,w,h)' is always true x11vnc-0.9.16/src/userinput.c:3912:12: style: Condition 'bs_x<0' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:3899:12: note: Assuming that condition 'bs_x<0' is not redundant x11vnc-0.9.16/src/userinput.c:3912:12: note: Condition 'bs_x<0' is always false x11vnc-0.9.16/src/userinput.c:4273:13: style: Condition '!clipped(idx)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:4273:21: note: Calling function 'clipped' returns 0 x11vnc-0.9.16/src/userinput.c:4273:13: note: Condition '!clipped(idx)' is always true x11vnc-0.9.16/src/userinput.c:4421:6: style: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:4421:24: note: Calling function 'get_wm_frame_pos' returns 0 x11vnc-0.9.16/src/userinput.c:4421:6: note: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true x11vnc-0.9.16/src/user.c:763:13: style: Variable 'grp_ok' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:4698:8: style: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:4698:26: note: Calling function 'get_wm_frame_pos' returns 0 x11vnc-0.9.16/src/userinput.c:4698:8: note: Condition '!get_wm_frame_pos(&px,&py,&x,&y,&w,&h,&frame,NULL)' is always true x11vnc-0.9.16/src/user.c:2864:16: style: Variable 'tried_switch' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:761:5: style: Redundant initialization for 's'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.16/src/userinput.c:759:11: note: s is initialized x11vnc-0.9.16/src/userinput.c:761:5: note: s is overwritten x11vnc-0.9.16/src/userinput.c:5523:14: style: Redundant initialization for 'vnccpu_rate'. The initialized value is overwritten before it is read. [redundantInitialization] x11vnc-0.9.16/src/userinput.c:5434:21: note: vnccpu_rate is initialized x11vnc-0.9.16/src/userinput.c:5523:14: note: vnccpu_rate is overwritten x11vnc-0.9.16/src/userinput.c:1111:21: style: The comparison 'do_cmp == 2' is always true. [knownConditionTrueFalse] x11vnc-0.9.16/src/userinput.c:1070:15: note: 'do_cmp' is assigned value '2' here. x11vnc-0.9.16/src/userinput.c:1111:21: note: The comparison 'do_cmp == 2' is always true. x11vnc-0.9.16/src/userinput.c:1158:39: style: Same expression 'xmin<0' found multiple times in chain of '||' operators. [duplicateExpression] x11vnc-0.9.16/src/userinput.c:2160:21: style:inconclusive: Function 'batch_push' argument 1 names different: declaration 'ncr' definition 'nreg'. [funcArgNamesDifferent] x11vnc-0.9.16/src/userinput.c:1427:21: note: Function 'batch_push' argument 1 names different: declaration 'ncr' definition 'nreg'. x11vnc-0.9.16/src/userinput.c:2160:21: note: Function 'batch_push' argument 1 names different: declaration 'ncr' definition 'nreg'. x11vnc-0.9.16/src/userinput.c:5713:22: style:inconclusive: Function 'check_ncache' argument 1 names different: declaration 'reset' definition 'a'. [funcArgNamesDifferent] x11vnc-0.9.16/src/userinput.c:96:22: note: Function 'check_ncache' argument 1 names different: declaration 'reset' definition 'a'. x11vnc-0.9.16/src/userinput.c:5713:22: note: Function 'check_ncache' argument 1 names different: declaration 'reset' definition 'a'. x11vnc-0.9.16/src/userinput.c:5713:29: style:inconclusive: Function 'check_ncache' argument 2 names different: declaration 'mode' definition 'b'. [funcArgNamesDifferent] x11vnc-0.9.16/src/userinput.c:96:33: note: Function 'check_ncache' argument 2 names different: declaration 'mode' definition 'b'. x11vnc-0.9.16/src/userinput.c:5713:29: note: Function 'check_ncache' argument 2 names different: declaration 'mode' definition 'b'. x11vnc-0.9.16/src/userinput.c:1775:7: style: Local variable 'x' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:1432:6: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:1775:7: note: Shadow variable x11vnc-0.9.16/src/userinput.c:1775:10: style: Local variable 'y' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:1432:9: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:1775:10: note: Shadow variable x11vnc-0.9.16/src/userinput.c:1775:13: style: Local variable 'w' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:1432:12: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:1775:13: note: Shadow variable x11vnc-0.9.16/src/userinput.c:1775:16: style: Local variable 'h' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:1432:15: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:1775:16: note: Shadow variable x11vnc-0.9.16/src/userinput.c:1797:8: style: Local variable 'link' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:1441:6: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:1797:8: note: Shadow variable x11vnc-0.9.16/src/userinput.c:2632:31: style: Local variable 'tm' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:2474:21: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:2632:31: note: Shadow variable x11vnc-0.9.16/src/userinput.c:2840:11: style: Local variable 'tm' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:2716:21: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:2840:11: note: Shadow variable x11vnc-0.9.16/src/userinput.c:3171:9: style: Local variable 'dt' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:3145:13: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:3171:9: note: Shadow variable x11vnc-0.9.16/src/userinput.c:3438:17: style: Local variable 'whole' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:3228:36: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:3438:17: note: Shadow variable x11vnc-0.9.16/src/userinput.c:4960:7: style: Local variable 'nidx' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:4350:28: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:4960:7: note: Shadow variable x11vnc-0.9.16/src/userinput.c:5242:9: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:5212:7: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:5242:9: note: Shadow variable x11vnc-0.9.16/src/userinput.c:5469:14: style: Local variable 'first' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/userinput.c:5429:13: note: Shadowed declaration x11vnc-0.9.16/src/userinput.c:5469:14: note: Shadow variable x11vnc-0.9.16/src/userinput.c:138:27: style: Parameter 'px' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:138:36: style: Parameter 'py' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:138:45: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:138:53: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:138:61: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:138:69: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:139:13: style: Parameter 'frame' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:139:28: style: Parameter 'win' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:209:45: style: Parameter 'scr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:210:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:283:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:334:39: style: Parameter 'wf' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:335:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:644:14: style: Variable 'imp' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:759:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:1113:17: style: Variable 'src2' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:3171:9: style: Variable 'dt' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:4259:8: style: Variable 'no' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:5283:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:5443:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/userinput.c:5733:30: style: Parameter 'nbatch' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:5733:77: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:5733:109: style: Parameter 'valid' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:5737:59: style: Parameter 'nbatch' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:5737:73: style: Parameter 'mode' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/util.c:467:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/util.c:493:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/util.c:534:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/util.c:572:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/util.c:644:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/util.c:752:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/userinput.c:395:6: style: Variable 'r' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:395:10: style: Variable 'g' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:395:14: style: Variable 'b' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:396:9: style: Variable 'cmap' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:397:15: style: Variable 'cdef.pixel' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:1806:10: style: Variable 'trate' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:2555:13: style: Variable 'link' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:2557:11: style: Variable 'gk0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:2569:15: style: Variable 'scroll_rep' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:2573:11: style: Variable 'scr_cnt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:2821:11: style: Variable 'gp0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:2822:11: style: Variable 'gk0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3582:12: style: Variable 'didfull' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3781:12: style: Variable 'bs_w' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3782:12: style: Variable 'bs_h' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3788:10: style: Variable 'nidx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3793:9: style: Variable 'bs_w' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3794:9: style: Variable 'bs_h' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:3797:9: style: Variable 'nidx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:4355:63: style: Variable 'gpi' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:4969:12: style: Variable 'spin_ms' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:4971:12: style: Variable 'spin_ms' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5297:6: style: Variable 'dt' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/util.c:391:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/util.c:395:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/util.c:497:9: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/util.c:496:9: note: First condition x11vnc-0.9.16/src/util.c:497:9: note: Second condition x11vnc-0.9.16/src/util.c:498:9: style: The if condition is the same as the previous if condition [duplicateCondition] x11vnc-0.9.16/src/util.c:497:9: note: First condition x11vnc-0.9.16/src/util.c:498:9: note: Second condition x11vnc-0.9.16/src/util.c:746:10: style: Condition 'th!=NULL' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/util.c:745:23: note: Calling function 'this_host' returns 0 x11vnc-0.9.16/src/util.c:745:23: note: Assignment 'th=this_host()', assigned value is 0 x11vnc-0.9.16/src/util.c:746:10: note: Condition 'th!=NULL' is always false x11vnc-0.9.16/src/userinput.c:5310:5: style: Variable 'to' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5312:11: style: Variable 'g_in' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/util.c:198:23: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/util.c:207:22: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/util.c:236:20: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/util.c:236:32: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/util.c:269:8: style: Variable 'user' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/util.c:293:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/util.c:314:8: style: Variable 'shell' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/util.c:369:30: style: Parameter 'cslist' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/util.c:710:26: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/userinput.c:5315:17: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/util.c:237:8: style: Unused variable: str [unusedVariable] x11vnc-0.9.16/src/util.c:338:7: style: Unused variable: host [unusedVariable] x11vnc-0.9.16/src/util.c:524:8: style: Variable 'usec0' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5348:14: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5545:11: style: Variable 'rpe_last' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5545:16: style: Variable 'to' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5546:11: style: Variable 'g_in' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5551:17: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/userinput.c:5590:14: style: Variable 'got_input' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/v4l.c:638:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_b [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/v4l.c:1072:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/v4l.c:1221:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/v4l.c:1426:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/v4l.c:1468:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/win_utils.c:325:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/win_utils.c:430:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/win_utils.c:604:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/v4l.c:1557:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/v4l.c:1587:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/v4l.c:1592:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/v4l.c:1633:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/v4l.c:612:17: style: Condition 'v4l1_setfmt(raw_fb_fd,fmt)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/v4l.c:612:17: note: Calling function 'v4l1_setfmt' returns 1 x11vnc-0.9.16/src/v4l.c:612:17: note: Condition 'v4l1_setfmt(raw_fb_fd,fmt)' is always true x11vnc-0.9.16/src/v4l.c:738:25: style: Condition 'v4l2_lu_palette_str(fmt,&tb,&tr)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/v4l.c:738:25: note: Calling function 'v4l2_lu_palette_str' returns 0 x11vnc-0.9.16/src/v4l.c:738:25: note: Condition 'v4l2_lu_palette_str(fmt,&tb,&tr)' is always false x11vnc-0.9.16/src/v4l.c:743:25: style: Condition 'v4l1_lu_palette_str(fmt,&tb,&tr)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/v4l.c:743:25: note: Calling function 'v4l1_lu_palette_str' returns 0 x11vnc-0.9.16/src/v4l.c:743:25: note: Condition 'v4l1_lu_palette_str(fmt,&tb,&tr)' is always false x11vnc-0.9.16/src/v4l.c:1379:14: style: Condition 'atparms==NULL' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/v4l.c:1370:6: note: Assuming that condition 'atparms' is not redundant x11vnc-0.9.16/src/v4l.c:1379:14: note: Condition 'atparms==NULL' is always true x11vnc-0.9.16/src/v4l.c:1475:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.16/src/v4l.c:1519:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.16/src/v4l.c:1201:3: error: Memory leak: cmd [memleak] x11vnc-0.9.16/src/v4l.c:1207:3: error: Memory leak: cmd [memleak] x11vnc-0.9.16/src/v4l.c:714:3: warning: Either the condition 'p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/v4l.c:710:6: note: Assuming that condition 'p' is not redundant x11vnc-0.9.16/src/v4l.c:714:3: note: Null pointer dereference x11vnc-0.9.16/src/v4l.c:1510:34: warning: Either the condition 'in1==NULL' is redundant or there is possible null pointer dereference: in1. [nullPointerRedundantCheck] x11vnc-0.9.16/src/v4l.c:1506:10: note: Assuming that condition 'in1==NULL' is not redundant x11vnc-0.9.16/src/v4l.c:1510:34: note: Null pointer dereference x11vnc-0.9.16/src/v4l.c:1535:38: warning: Either the condition 'in2==NULL' is redundant or there is possible null pointer dereference: in2. [nullPointerRedundantCheck] x11vnc-0.9.16/src/v4l.c:1531:12: note: Assuming that condition 'in2==NULL' is not redundant x11vnc-0.9.16/src/v4l.c:1535:38: note: Null pointer dereference x11vnc-0.9.16/src/v4l.c:735:30: style:inconclusive: Function 'lookup_rgb' argument 1 names different: declaration 'g_fmt' definition 'fmt'. [funcArgNamesDifferent] x11vnc-0.9.16/src/v4l.c:83:30: note: Function 'lookup_rgb' argument 1 names different: declaration 'g_fmt' definition 'fmt'. x11vnc-0.9.16/src/v4l.c:735:30: note: Function 'lookup_rgb' argument 1 names different: declaration 'g_fmt' definition 'fmt'. x11vnc-0.9.16/src/v4l.c:735:40: style:inconclusive: Function 'lookup_rgb' argument 2 names different: declaration 'g_b' definition 'bits'. [funcArgNamesDifferent] x11vnc-0.9.16/src/v4l.c:83:42: note: Function 'lookup_rgb' argument 2 names different: declaration 'g_b' definition 'bits'. x11vnc-0.9.16/src/v4l.c:735:40: note: Function 'lookup_rgb' argument 2 names different: declaration 'g_b' definition 'bits'. x11vnc-0.9.16/src/v4l.c:735:51: style:inconclusive: Function 'lookup_rgb' argument 3 names different: declaration 'mask_rev' definition 'rev'. [funcArgNamesDifferent] x11vnc-0.9.16/src/v4l.c:83:52: note: Function 'lookup_rgb' argument 3 names different: declaration 'mask_rev' definition 'rev'. x11vnc-0.9.16/src/v4l.c:735:51: note: Function 'lookup_rgb' argument 3 names different: declaration 'mask_rev' definition 'rev'. x11vnc-0.9.16/src/v4l.c:802:43: style:inconclusive: Function 'v4l2_lu_palette' argument 1 names different: declaration 'palette' definition 'fmt'. [funcArgNamesDifferent] x11vnc-0.9.16/src/v4l.c:86:43: note: Function 'v4l2_lu_palette' argument 1 names different: declaration 'palette' definition 'fmt'. x11vnc-0.9.16/src/v4l.c:802:43: note: Function 'v4l2_lu_palette' argument 1 names different: declaration 'palette' definition 'fmt'. x11vnc-0.9.16/src/v4l.c:886:35: style:inconclusive: Function 'v4l1_query' argument 2 names different: declaration 'verbose' definition 'v'. [funcArgNamesDifferent] x11vnc-0.9.16/src/v4l.c:88:35: note: Function 'v4l1_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.16/src/v4l.c:886:35: note: Function 'v4l1_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.16/src/v4l.c:985:35: style:inconclusive: Function 'v4l2_query' argument 2 names different: declaration 'verbose' definition 'v'. [funcArgNamesDifferent] x11vnc-0.9.16/src/v4l.c:89:35: note: Function 'v4l2_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.16/src/v4l.c:985:35: note: Function 'v4l2_query' argument 2 names different: declaration 'verbose' definition 'v'. x11vnc-0.9.16/src/v4l.c:1476:10: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/v4l.c:1442:12: note: Shadowed declaration x11vnc-0.9.16/src/v4l.c:1476:10: note: Shadow variable x11vnc-0.9.16/src/v4l.c:1521:10: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/v4l.c:1442:12: note: Shadowed declaration x11vnc-0.9.16/src/v4l.c:1521:10: note: Shadow variable x11vnc-0.9.16/src/v4l.c:252:38: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:279:34: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:279:45: style: Parameter 'settings' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:279:60: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:688:26: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:702:30: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:718:30: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:774:49: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:774:60: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:774:71: style: Parameter 'rev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:837:47: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:837:58: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:837:69: style: Parameter 'rev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:1086:34: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:1086:44: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/v4l.c:1164:49: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:119:6: warning: Identical condition 'win==0L', second condition is always false [identicalConditionAfterEarlyExit] x11vnc-0.9.16/src/win_utils.c:105:10: note: If condition 'win==0L' is true, the function will return/exit x11vnc-0.9.16/src/win_utils.c:119:6: note: Testing identical condition 'win==0L' x11vnc-0.9.16/src/win_utils.c:178:18: style: Condition 'valid_window(win,&attr,1)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/win_utils.c:178:18: note: Calling function 'valid_window' returns 0 x11vnc-0.9.16/src/win_utils.c:178:18: note: Condition 'valid_window(win,&attr,1)' is always false x11vnc-0.9.16/src/win_utils.c:330:14: style: Condition '!valid_window(win,&attr,1)' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/win_utils.c:330:27: note: Calling function 'valid_window' returns 0 x11vnc-0.9.16/src/win_utils.c:330:14: note: Condition '!valid_window(win,&attr,1)' is always true x11vnc-0.9.16/src/win_utils.c:93:27: style: Variable 'pattr' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/win_utils.c:142:68: style: Parameter 'dst_x' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:143:10: style: Parameter 'dst_y' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:143:25: style: Parameter 'child' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:198:10: style: Variable 'list' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/win_utils.c:480:55: style: Parameter 'name_info' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:763:36: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:788:35: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:811:49: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:860:30: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/win_utils.c:100:9: style: Variable 'pattr' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:102:9: style: Variable 'pattr' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:93:20: style: Unused variable: attr [unusedVariable] x11vnc-0.9.16/src/win_utils.c:230:6: style: Variable 'num' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:230:11: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:230:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:230:19: style: Variable 'j' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:231:5: style: Variable 'ui' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:232:4: style: Variable 'r' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:232:8: style: Variable 'w' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:372:19: style: Variable 'rx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:372:24: style: Variable 'ry' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:601:13: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:601:21: style: Variable 'dy' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:601:29: style: Variable 'dw' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:601:37: style: Variable 'dh' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:603:26: style: Variable 'do_move' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:603:41: style: Variable 'do_resize' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:604:13: style: Variable 'disp_x' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:605:13: style: Variable 'disp_y' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/win_utils.c:601:6: style: Unused variable: rc [unusedVariable] x11vnc-0.9.16/src/win_utils.c:602:6: style: Unused variable: x0 [unusedVariable] x11vnc-0.9.16/src/win_utils.c:602:10: style: Unused variable: y0 [unusedVariable] x11vnc-0.9.16/src/win_utils.c:602:14: style: Unused variable: w0 [unusedVariable] x11vnc-0.9.16/src/win_utils.c:602:18: style: Unused variable: h0 [unusedVariable] x11vnc-0.9.16/src/win_utils.c:603:6: style: Unused variable: x [unusedVariable] x11vnc-0.9.16/src/win_utils.c:603:9: style: Unused variable: y [unusedVariable] x11vnc-0.9.16/src/win_utils.c:603:12: style: Unused variable: w [unusedVariable] x11vnc-0.9.16/src/win_utils.c:603:15: style: Unused variable: h [unusedVariable] x11vnc-0.9.16/src/win_utils.c:607:20: style: Unused variable: attr [unusedVariable] x11vnc-0.9.16/src/win_utils.c:609:9: style: Unused variable: twin [unusedVariable] x11vnc-0.9.16/src/xdamage.c:145:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xdamage.c:207:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xdamage.c:270:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xdamage.c:731:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xdamage.c:755:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sraRegionPtr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xdamage.c:255:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.16/src/xdamage.c:631:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.16/src/xdamage.c:632:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] x11vnc-0.9.16/src/xdamage.c:149:15: style: Condition '0&&wh_minptr_id)' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/xi2_devices.c:165:13: note: Calling function 'removeMD' returns 0 x11vnc-0.9.16/src/xi2_devices.c:165:13: note: Condition 'removeMD(dpy,cd->ptr_id)' is always false x11vnc-0.9.16/src/xi2_devices.c:54:23: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:54:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:114:23: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:164:14: style: Variable 'cd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/xi2_devices.c:174:26: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:208:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:208:89: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:320:29: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xi2_devices.c:386:33: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xinerama.c:236:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/x11vnc.c:241:10: style: Condition 'pid==0' is always true [knownConditionTrueFalse] x11vnc-0.9.16/src/x11vnc.c:228:10: note: Assuming that condition 'pid<0' is not redundant x11vnc-0.9.16/src/x11vnc.c:233:10: note: Assuming condition is false x11vnc-0.9.16/src/x11vnc.c:241:10: note: Condition 'pid==0' is always true x11vnc-0.9.16/src/x11vnc.c:1336:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/x11vnc.c:1334:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/x11vnc.c:1336:6: note: Condition 'db' is always false x11vnc-0.9.16/src/x11vnc.c:2085:9: style: Condition '0&&!got_inetd' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/x11vnc.c:1186:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] x11vnc-0.9.16/src/x11vnc.c:953:144: error: Dereferencing 's' after it is deallocated / released [deallocuse] x11vnc-0.9.16/src/xinerama.c:71:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/xinerama.c:77:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/xinerama.c:84:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/xinerama.c:132:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] x11vnc-0.9.16/src/xinerama.c:67:40: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/x11vnc.c:1094:20: warning: Either the condition 'rc==NULL' is redundant or there is possible null pointer dereference: rc. [nullPointerRedundantCheck] x11vnc-0.9.16/src/x11vnc.c:1076:11: note: Assuming that condition 'rc==NULL' is not redundant x11vnc-0.9.16/src/x11vnc.c:1094:20: note: Null pointer dereference x11vnc-0.9.16/src/x11vnc.c:1982:36: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/x11vnc.c:1977:7: note: Assuming that condition '!p' is not redundant x11vnc-0.9.16/src/x11vnc.c:1982:36: note: Null pointer dereference x11vnc-0.9.16/src/x11vnc.c:1983:10: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/x11vnc.c:1977:7: note: Assuming that condition '!p' is not redundant x11vnc-0.9.16/src/x11vnc.c:1983:10: note: Null pointer dereference x11vnc-0.9.16/src/x11vnc.c:2006:40: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/x11vnc.c:2001:11: note: Assuming that condition '!p' is not redundant x11vnc-0.9.16/src/x11vnc.c:2006:40: note: Null pointer dereference x11vnc-0.9.16/src/x11vnc.c:2007:14: warning: Either the condition '!p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] x11vnc-0.9.16/src/x11vnc.c:2001:11: note: Assuming that condition '!p' is not redundant x11vnc-0.9.16/src/x11vnc.c:2007:14: note: Null pointer dereference x11vnc-0.9.16/src/x11vnc.c:5571:7: style: Variable 'tmpi' is reassigned a value before the old one has been used. [redundantAssignment] x11vnc-0.9.16/src/x11vnc.c:5557:7: note: tmpi is assigned x11vnc-0.9.16/src/x11vnc.c:5571:7: note: tmpi is overwritten x11vnc-0.9.16/src/x11vnc.c:2228:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:2864:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:2886:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:2894:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:2902:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:2910:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:2915:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:3170:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] x11vnc-0.9.16/src/x11vnc.c:1995:12: style: Local variable 'q' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:1958:27: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:1995:12: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:4319:8: style: Local variable 'n' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:4314:7: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:4319:8: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:4438:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:4438:7: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:4456:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:4456:8: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:4574:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:4574:7: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:4603:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:4603:7: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:4673:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:4673:7: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:5169:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:5169:7: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:5262:7: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:5262:7: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:5759:8: style: Local variable 'i' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/x11vnc.c:2038:6: note: Shadowed declaration x11vnc-0.9.16/src/x11vnc.c:5759:8: note: Shadow variable x11vnc-0.9.16/src/x11vnc.c:275:30: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/x11vnc.c:860:30: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/x11vnc.c:861:18: style: Variable 'ssh' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:943:9: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:1025:8: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:1276:51: style: Parameter 'argv' can be declared as const array [constParameter] x11vnc-0.9.16/src/x11vnc.c:1331:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/x11vnc.c:1445:56: style: Parameter 'gui_str' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/x11vnc.c:1747:32: style: Variable 'h' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:1845:6: style: Variable 'msg' can be declared as const array [constVariable] x11vnc-0.9.16/src/x11vnc.c:1880:6: style: Variable 'msg2' can be declared as const array [constVariable] x11vnc-0.9.16/src/x11vnc.c:1924:30: style: Parameter 'sleep' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/x11vnc.c:2046:8: style: Variable 'query_match' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2059:8: style: Variable 'got_rfbport_str' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2110:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2233:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2268:18: style: Variable 't0' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2381:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2795:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2856:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2921:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2941:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2962:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:2974:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:3020:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:3061:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:3438:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:3495:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:3596:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:3972:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:4039:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:4361:10: style: Variable 'h' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:4482:13: style: Variable 'h' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:5024:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:5057:9: style: Variable 'mcm' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:5450:10: style: Variable 's' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/x11vnc.c:276:18: style: Variable 'db' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:276:6: style: Unused variable: i [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:276:9: style: Unused variable: j [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:276:12: style: Unused variable: n [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:277:8: style: Unused variable: p [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:277:12: style: Unused variable: q [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:277:16: style: Unused variable: r [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:277:20: style: Unused variable: str [unusedVariable] x11vnc-0.9.16/src/x11vnc.c:1646:32: style: Variable 'loop_sleep' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:1646:49: style: Variable 'loop_max' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:1660:14: style: Variable 'loop_max' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:1665:16: style: Variable 'loop_sleep' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:1672:17: style: Variable 'loop_sleep' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:1982:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/x11vnc.c:2006:9: style: Variable 'n' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xrandr.c:97:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/x11vnc.c:4653:14: style: Variable 'message[0]' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xrandr.c:86:39: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xrandr.c:292:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xrecord.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:338:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:380:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:422:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_J [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:436:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_N [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:447:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Return [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:522:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:1566:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:1707:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x11Mutex [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xrecord.c:413:29: style:inconclusive: Function 'xrecord_skip_button' argument 1 names different: declaration 'newb' definition 'new_button'. [funcArgNamesDifferent] x11vnc-0.9.16/src/xrecord.c:76:29: note: Function 'xrecord_skip_button' argument 1 names different: declaration 'newb' definition 'new_button'. x11vnc-0.9.16/src/xrecord.c:413:29: note: Function 'xrecord_skip_button' argument 1 names different: declaration 'newb' definition 'new_button'. x11vnc-0.9.16/src/xrecord.c:109:33: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xrecord.c:400:9: style: Variable 'win' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xrecord.c:1560:18: style: Variable 'reset_time' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xrecord.c:1560:38: style: Variable 'require_idle' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xrecord.c:1571:14: style: Variable 'reset_time' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xrecord.c:1572:16: style: Variable 'require_idle' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xwrappers.c:503:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xwrappers.c:614:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rfbEndianTest [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xwrappers.c:764:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xwrappers.c:1318:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xwrappers.c:1427:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xwrappers.c:1506:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/nox11_funcs.h:90:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_VoidSymbol [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/nox11_funcs.h:1451:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_VoidSymbol [valueFlowBailoutIncompleteVar] x11vnc-0.9.16/src/xwrappers.c:410:20: style: Condition '!width' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/xwrappers.c:409:67: note: Assuming that condition '!width' is not redundant x11vnc-0.9.16/src/xwrappers.c:410:20: note: Condition '!width' is always false x11vnc-0.9.16/src/xwrappers.c:942:41: style: Condition '!first' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/xwrappers.c:1506:6: style: Condition 'db' is always false [knownConditionTrueFalse] x11vnc-0.9.16/src/xwrappers.c:1505:11: note: Assignment 'db=0', assigned value is 0 x11vnc-0.9.16/src/xwrappers.c:1506:6: note: Condition 'db' is always false x11vnc-0.9.16/src/xwrappers.c:503:8: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.16/src/xwrappers.c:503:8: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.16/src/xwrappers.c:764:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.16/src/xwrappers.c:764:9: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.16/src/xwrappers.c:783:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.16/src/xwrappers.c:783:9: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] x11vnc-0.9.16/src/xwrappers.c:410:17: style: Same expression '!width' found multiple times in chain of '||' operators. [duplicateExpression] x11vnc-0.9.16/src/xwrappers.c:549:17: style: Local variable 'ib' shadows outer variable [shadowVariable] x11vnc-0.9.16/src/xwrappers.c:537:8: note: Shadowed declaration x11vnc-0.9.16/src/xwrappers.c:549:17: note: Shadow variable x11vnc-0.9.16/src/xwrappers.c:154:24: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:187:33: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:187:59: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:213:37: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:213:51: style: Parameter 'vis' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:214:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:214:46: style: Parameter 'shminfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:226:31: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:226:54: style: Parameter 'shminfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:235:31: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:235:54: style: Parameter 'shminfo' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:245:37: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:254:34: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:265:30: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:293:34: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:295:25: style: Parameter 'dest_image' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:340:31: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:370:34: style: Parameter 'disp' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:370:48: style: Parameter 'visual' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:433:8: style: Variable 'src' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/xwrappers.c:902:37: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:933:36: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1019:40: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1046:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1111:40: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1137:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1198:54: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1212:47: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1225:38: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1225:48: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1225:57: style: Parameter 'er' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1225:66: style: Parameter 'maj' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1226:10: style: Parameter 'min' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1236:31: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1248:39: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1248:49: style: Parameter 'ev' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1248:58: style: Parameter 'er' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1248:67: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1260:34: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1274:35: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1374:38: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1374:48: style: Parameter 'maj' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1374:58: style: Parameter 'min' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1385:37: style: Parameter 'dpy' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1385:47: style: Parameter 'maj' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1385:57: style: Parameter 'min' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1461:32: style: Parameter 'display_name' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1462:11: style: Variable 'd' can be declared as pointer to const [constVariablePointer] x11vnc-0.9.16/src/xwrappers.c:1504:31: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1522:32: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1522:59: style: Parameter 'root_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1523:13: style: Parameter 'child_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1523:32: style: Parameter 'root_x_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1523:52: style: Parameter 'root_y_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1524:10: style: Parameter 'win_x_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1524:29: style: Parameter 'win_y_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1524:57: style: Parameter 'mask_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1640:31: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1640:58: style: Parameter 'root_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1641:13: style: Parameter 'parent_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1642:19: style: Parameter 'nchildren_return' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1664:20: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1678:30: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:1699:37: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/nox11_funcs.h:88:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/nox11_funcs.h:2809:34: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/nox11_funcs.h:2814:35: style: Parameter 'display' can be declared as pointer to const [constParameterPointer] x11vnc-0.9.16/src/xwrappers.c:595:10: style: Variable 'bpl' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xwrappers.c:936:13: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xwrappers.c:1048:13: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xwrappers.c:1139:13: style: Variable 'regrab' is assigned a value that is never used. [unreadVariable] x11vnc-0.9.16/src/xwrappers.c:1407:13: style: Variable 'tmp_fd' is assigned a value that is never used. [unreadVariable] diff: DONE