From: Josh Triplett Date: Wed, 13 Nov 2013 01:27:11 +0000 (+0100) Subject: * grub-core/normal/term.c (grub_set_more): Use bool logic rather than X-Git-Tag: grub-2.02-beta1~358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d8a2033b5de9446cfda451aeda79268ab2343e;p=thirdparty%2Fgrub.git * grub-core/normal/term.c (grub_set_more): Use bool logic rather than increment/decrement. --- 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 (); }