* grub-core/normal/term.c (grub_set_more): Use bool logic rather than

increment/decrement.
This commit is contained in:
Josh Triplett 2013-11-13 02:27:11 +01:00 committed by Vladimir Serbinenko
parent c773faf05e
commit 46d8a2033b
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2013-11-13 Josh Triplett <josh@joshtriplett.org>
* grub-core/normal/term.c (grub_set_more): Use bool logic rather than
increment/decrement.
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when

View file

@ -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 ();
}