flowtop: Replace bool lookup tables by switch statement
commite8bc35c3efe80858a6a7a2df41e5219f3c1c8eb9
authorTobias Klauser <tklauser@distanz.ch>
Wed, 22 Jul 2015 09:11:12 +0000 (22 11:11 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 22 Jul 2015 09:20:58 +0000 (22 11:20 +0200)
tree4a8f132e68b3e78500c9de17f177093f4ba3ae9b
parentf4024343a161f50b73f106dd3dea24d68a934d5a
flowtop: Replace bool lookup tables by switch statement

Use a switch statement instead of looking up a valid state in the
*_states_show bool arrays in presenter_flow_wrong_state(). This makes
the code a bit easier to read.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop.c