Refactor: Use if for two-way branching; Compare against 0 explicitly
authormarkus schnalke <meillo@marmaro.de>
Sat, 14 Feb 2015 16:29:22 +0000 (17:29 +0100)
committermarkus schnalke <meillo@marmaro.de>
Sat, 14 Feb 2015 16:29:22 +0000 (17:29 +0100)
commitf9ed40f2742263b3a1023bedee4139b4b18f0a86
tree013670f1200e114de03dbd2d630f224286ab1799
parent2f43405ca3cccdfc56faca7a8b6b0d6913cf45aa
Refactor: Use if for two-way branching; Compare against 0 explicitly

I think that the use of switch for the two-way branches could have
been a performance optimization. I think it's clearer to use if,
especially in the fall-through case.

As setjmp() is known to return with either 0 or something else, we
should compare against 0 and not against some define (for which I
again and again wonder if it stands for 0 or for 1).
uip/mhl.c
uip/prompter.c
uip/send.c