2008-07-02 Pavel Roskin <proski@gnu.org>
* util/grub-editenv.c (cmd_info): Cast argument to long explicitly. ptrdiff_t reduces to int on i386.
This commit is contained in:
parent
cbabfdd464
commit
11e16b157b
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2008-07-02 Pavel Roskin <proski@gnu.org>
|
2008-07-02 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* util/grub-editenv.c (cmd_info): Cast argument to long
|
||||||
|
explicitly. ptrdiff_t reduces to int on i386.
|
||||||
|
|
||||||
* util/grub-editenv.c (main): Be specific which parameter is
|
* util/grub-editenv.c (main): Be specific which parameter is
|
||||||
missing.
|
missing.
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ open_envblk_file (char *name)
|
||||||
static void
|
static void
|
||||||
cmd_info (void)
|
cmd_info (void)
|
||||||
{
|
{
|
||||||
printf ("Envblk offset: %ld\n", envblk->data - buffer);
|
printf ("Envblk offset: %ld\n", (long) (envblk->data - buffer));
|
||||||
printf ("Envblk length: %d\n", envblk->length);
|
printf ("Envblk length: %d\n", envblk->length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue