]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Remove constant conditionals (dead-code).
authorCorey Farrell <git@cfware.com>
Mon, 18 Dec 2017 21:36:21 +0000 (16:36 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 19 Dec 2017 14:52:33 +0000 (08:52 -0600)
commitd6b2f457d97abf56323414cb2faa404a978eda08
tree4ab8f485c7d2253b0ea3dac8ffbd38a7f03ec5a0
parentb14d16592790f681c5e2e1c5d80fbe0eb92bf358
Remove constant conditionals (dead-code).

Some variables are set and never changed, making them constant.  This
means that code in the 'false' block of the conditional is unreachable.

In chan_skinny and res_config_ldap I used preprocessor directive `#if 0`
as I'm unsure if the unreachable code could be enabled in the future.

Change-Id: I62e2aac353d739fb3c983cf768933120f5fba059
channels/chan_skinny.c
main/manager_system.c
main/stdtime/localtime.c
main/xmldoc.c
res/res_config_ldap.c