+2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
+
2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/bsdlabel.h: Use enums.
}
if (l < 224)
{
- *len = (l - 192) << 8;
+ *len = (l - 192) << GRUB_CHAR_BIT;
if (grub_file_read (sig, &l, sizeof (l)) != 1)
return grub_error (GRUB_ERR_BAD_SIGNATURE, N_("bad signature"));
*len |= l;
goto fail;
}
- lb = (grub_be_to_cpu16 (l) + 7) / 8;
+ lb = (grub_be_to_cpu16 (l) + GRUB_CHAR_BIT - 1) / GRUB_CHAR_BIT;
if (lb > sizeof (buffer) - sizeof (grub_uint16_t))
{
grub_error (GRUB_ERR_BAD_SIGNATURE, N_("bad signature"));
{
if (ptr + 1 >= readbuf + rem)
break;
- l = (((ptr[0] & ~192) << 8) | ptr[1]) + 192;
+ l = (((ptr[0] & ~192) << GRUB_CHAR_BIT) | ptr[1]) + 192;
ptr += 2;
}
else