mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
const attribute and use grub_isdigit.
This commit is contained in:
1 parent
b5ebecfabc
commit
72a89a54e1
2 files changed
+8
-3
No files matched your search
@@ -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>
|
2011-04-06 Andrey <dev_null@ukr.net>
|
||||||
|
|
||||||
* grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
|
* 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)
|
if (mdadm_name)
|
||||||
{
|
{
|
||||||
char *newname;
|
char *newname;
|
||||||
char *q;
|
const char *q;
|
||||||
|
|
||||||
for (q = os_dev + strlen (os_dev) - 1; q >= os_dev && isdigit (*q);
|
for (q = os_dev + strlen (os_dev) - 1; q >= os_dev
|
||||||
q--);
|
&& grub_isdigit (*q); q--);
|
||||||
|
|
||||||
if (q >= os_dev && *q == 'p')
|
if (q >= os_dev && *q == 'p')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user