silence warnings from clang ccc-analyzer
silence warnings from clang ccc-analyzer

rewrite some (generally correct) code for clang ccc-analyzer to be
able to recognize the patterns instead of issuing spurious warnings.

gstrauss/lighttpd1.4,lighttpd/lighttpd1.4,PatchyFog/lighttpd1.4-mbedtls,gstrauss/lighttpd1.4,lighttpd/lighttpd1.4,PatchyFog/lighttpd1.4-mbedtls,lighttpd/lighttpd1.4,PatchyFog/lighttpd1.4-mbedtls,PatchyFog/lighttpd1.4-mbedtls,PatchyFog/lighttpd1.4-mbedtls,PatchyFog/lighttpd1.4-mbedtls,lighttpd/lighttpd1.4,gstrauss/lighttpd1.4,lighttpd/lighttpd1.4,lighttpd/lighttpd1.4,gstrauss/lighttpd1.4,PatchyFog/lighttpd1.4-mbedtls,gstrauss/lighttpd1.4,gstrauss/lighttpd1.4