* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
const attribute and use grub_isdigit.
This commit is contained in:
parent
b5ebecfabc
commit
72a89a54e1
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
|
||||
const attribute and use grub_isdigit.
|
||||
|
||||
2011-04-06 Andrey <dev_null@ukr.net>
|
||||
|
||||
* grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
|
||||
|
|
|
@ -808,10 +808,10 @@ grub_util_get_grub_dev (const char *os_dev)
|
|||
if (mdadm_name)
|
||||
{
|
||||
char *newname;
|
||||
char *q;
|
||||
const char *q;
|
||||
|
||||
for (q = os_dev + strlen (os_dev) - 1; q >= os_dev && isdigit (*q);
|
||||
q--);
|
||||
for (q = os_dev + strlen (os_dev) - 1; q >= os_dev
|
||||
&& grub_isdigit (*q); q--);
|
||||
|
||||
if (q >= os_dev && *q == 'p')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue