2008-04-01 Pavel Roskin <proski@gnu.org>

* util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek().  The
	later is obsolete, potentially dangerous and sets a bad example.
	* util/i386/efi/grub-mkimage.c (make_header): Likewise.
	* util/misc.c (grub_util_get_image_size): Likewise.
This commit is contained in:
proski 2008-04-02 01:49:18 +00:00
parent 2bb4fb47e8
commit 828a27686e
4 changed files with 11 additions and 6 deletions

View file

@ -255,8 +255,8 @@ cmd_cmp (char *src, char *dest)
return;
}
if ((skip) && (fseek (ff, skip, SEEK_SET)))
grub_util_error ("fseek error.\n");
if ((skip) && (fseeko (ff, skip, SEEK_SET)))
grub_util_error ("seek error.\n");
read_file (src, cmp_hook);
fclose (ff);