2007-10-21 Robert Millan <rmh@aybabtu.com>

* include/grub/misc.h (grub_max): New function.
This commit is contained in:
robertmh 2007-10-21 12:58:21 +00:00
parent 2aad70e250
commit a39a031233
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2007-10-21 Robert Millan <rmh@aybabtu.com>
* include/grub/misc.h (grub_max): New function.
2007-10-21 Robert Millan <rmh@aybabtu.com> 2007-10-21 Robert Millan <rmh@aybabtu.com>
* util/misc.c (grub_util_info): Call fflush() before returning. * util/misc.c (grub_util_info): Call fflush() before returning.

View file

@ -92,4 +92,13 @@ grub_abs (int x)
return (unsigned int) x; return (unsigned int) x;
} }
static inline long
grub_max (long x, long y)
{
if (x > y)
return x;
else
return y;
}
#endif /* ! GRUB_MISC_HEADER */ #endif /* ! GRUB_MISC_HEADER */