Remove extra declaration of sleep for mingw32.

* util/misc.c (sleep) [__MINGW32__]: Removed.
	* include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
This commit is contained in:
Mario Limonciello 2011-09-29 10:32:24 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent e0b0dc837b
commit cca7ccd8ff
3 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
Remove extra declaration of sleep for mingw32.
* util/misc.c (sleep) [__MINGW32__]: Removed.
* include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com> 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
* include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields

View file

@ -47,7 +47,6 @@ void grub_util_write_image_at (const void *img, size_t size, off_t offset,
void sync (void); void sync (void);
int fsync (int fno); int fsync (int fno);
void sleep(int s);
grub_int64_t grub_util_get_disk_size (char *name); grub_int64_t grub_util_get_disk_size (char *name);

View file

@ -316,11 +316,6 @@ int fsync (int fno __attribute__ ((unused)))
return 0; return 0;
} }
void sleep (int s)
{
Sleep (s * 1000);
}
grub_int64_t grub_int64_t
grub_util_get_disk_size (char *name) grub_util_get_disk_size (char *name)
{ {