mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
This commit is contained in:
1 parent
fb022c79ef
commit
315654c269
2 files changed
+6
-2
No files matched your search
@@ -37,14 +37,14 @@ GRUB_MOD_LICENSE ("GPLv3+");
|
||||
/* Go the string STR and return the number after STR. *P will point
|
||||
at the number. In case STR is not found, *P will be NULL and the
|
||||
return value will be 0. */
|
||||
static int
|
||||
static grub_uint64_t
|
||||
grub_lvm_getvalue (char **p, const char *str)
|
||||
{
|
||||
*p = grub_strstr (*p, str);
|
||||
if (! *p)
|
||||
return 0;
|
||||
*p += grub_strlen (str);
|
||||
return grub_strtoul (*p, p, 10);
|
||||
return grub_strtoull (*p, p, 10);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in new issue
Block a user