* 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

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