From 46d8a2033b5de9446cfda451aeda79268ab2343e Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 13 Nov 2013 02:27:11 +0100 Subject: [PATCH] * grub-core/normal/term.c (grub_set_more): Use bool logic rather than increment/decrement. --- ChangeLog | 5 +++++ grub-core/normal/term.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae08e7d87..804e721c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-13 Josh Triplett + + * grub-core/normal/term.c (grub_set_more): Use bool logic rather than + increment/decrement. + 2013-11-13 Vladimir Serbinenko * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when diff --git a/grub-core/normal/term.c b/grub-core/normal/term.c index 7b2b7bd33..4c2238b25 100644 --- a/grub-core/normal/term.c +++ b/grub-core/normal/term.c @@ -124,10 +124,7 @@ print_more (void) void grub_set_more (int onoff) { - if (onoff == 1) - grub_more++; - else - grub_more--; + grub_more = !!onoff; grub_normal_reset_more (); }