+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.
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;
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;
/* Add all the pvs to the volume group. */
while (1)
{
- int s;
+ grub_ssize_t s;
while (grub_isspace (*p))
p++;
/* 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;