aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lxdialog/yesno.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2005-11-19 21:56:20 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2005-11-19 21:56:20 +0100
commitdec69da856653772d7ee7b2f98dc69da27274a22 (patch)
tree020cf19de028a402a6bfc792caaffeddaf5a3e9b /scripts/lxdialog/yesno.c
parentkconfig: Lindent scripts/lxdialog (diff)
downloadlinux-dev-dec69da856653772d7ee7b2f98dc69da27274a22.tar.xz
linux-dev-dec69da856653772d7ee7b2f98dc69da27274a22.zip
kconfig: fixup after Lindent
Readability are more important then the 80 coloumn limit, so fold several lines to greatly improve readability. Also keep return type on same line as function definition. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to '')
-rw-r--r--scripts/lxdialog/yesno.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lxdialog/yesno.c b/scripts/lxdialog/yesno.c
index dffd5af36713..84f3e8e005e4 100644
--- a/scripts/lxdialog/yesno.c
+++ b/scripts/lxdialog/yesno.c
@@ -96,8 +96,7 @@ int dialog_yesno(const char *title, const char *prompt, int height, int width)
case TAB:
case KEY_LEFT:
case KEY_RIGHT:
- button = ((key == KEY_LEFT ? --button : ++button) < 0)
- ? 1 : (button > 1 ? 0 : button);
+ button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button);
print_buttons(dialog, height, width, button);
wrefresh(dialog);