]> git.ipfire.org Git - thirdparty/mtr.git/commit
curses: use switch case in mtr_curses_keyaction()
authorSami Kerola <kerolasa@iki.fi>
Tue, 4 Oct 2016 16:44:33 +0000 (17:44 +0100)
committerSami Kerola <kerolasa@iki.fi>
Tue, 11 Oct 2016 18:29:19 +0000 (19:29 +0100)
commit934e31b27b5d7334ab395c7c8f8347ede7c17f42
tree3b221ccb72b159ae79c6b838afd87a95f8a0f3ca
parent6e5e0a2b8b271a1aac5e59790dc9d789422ff29d
curses: use switch case in mtr_curses_keyaction()

Do tolower() call only once before switch case to remove boilerplateing.  In
same go clean up indentation style in this function.
curses.c