* grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t

for pointer difference.
This commit is contained in:
Vladimir Serbinenko 2013-12-21 14:15:04 +01:00
parent 62ce03cf40
commit 6e327fcd4c
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
for pointer difference.
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
* util/import_gcry.py: Skip sample keys.

View File

@ -65,7 +65,7 @@ grub_lvm_checkvalue (char **p, char *str, char *tmpl)
static int
grub_lvm_check_flag (char *p, const char *str, const char *flag)
{
int len_str = grub_strlen (str), len_flag = grub_strlen (flag);
grub_size_t len_str = grub_strlen (str), len_flag = grub_strlen (flag);
while (1)
{
char *q;
@ -111,7 +111,8 @@ grub_lvm_detect (grub_disk_t disk,
struct grub_lvm_disk_locn *dlocn;
struct grub_lvm_mda_header *mdah;
struct grub_lvm_raw_locn *rlocn;
unsigned int i, j, vgname_len;
unsigned int i, j;
grub_size_t vgname_len;
struct grub_diskfilter_vg *vg;
struct grub_diskfilter_pv *pv;
@ -273,7 +274,7 @@ grub_lvm_detect (grub_disk_t disk,
/* Add all the pvs to the volume group. */
while (1)
{
int s;
grub_ssize_t s;
while (grub_isspace (*p))
p++;
@ -340,7 +341,7 @@ grub_lvm_detect (grub_disk_t disk,
/* And add all the lvs to the volume group. */
while (1)
{
int s;
grub_ssize_t s;
int skip_lv = 0;
struct grub_diskfilter_lv *lv;
struct grub_diskfilter_segment *seg;