mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
* grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
strict-aliasing warning. (fsync): Silence cast warning.
This commit is contained in:
1 parent
1dcb27157d
commit
08772054e9
2 files changed
+9
-2
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
|
||||||
|
strict-aliasing warning.
|
||||||
|
(fsync): Silence cast warning.
|
||||||
|
|
||||||
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/commands/verify.c: Remove variable length arrays.
|
* grub-core/commands/verify.c: Remove variable length arrays.
|
||||||
|
|||||||
@@ -264,7 +264,8 @@ grub_util_fd_strerror (void)
|
|||||||
|
|
||||||
FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
|
FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
|
||||||
| FORMAT_MESSAGE_IGNORE_INSERTS,
|
| FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL, err, 0, (LPTSTR) &tstr, 0, NULL);
|
NULL, err, 0, (void *) &tstr,
|
||||||
|
0, NULL);
|
||||||
|
|
||||||
if (!tstr)
|
if (!tstr)
|
||||||
return "unknown error";
|
return "unknown error";
|
||||||
@@ -466,7 +467,7 @@ grub_util_fopen (const char *path, const char *mode)
|
|||||||
int fsync (int fno)
|
int fsync (int fno)
|
||||||
{
|
{
|
||||||
HANDLE hnd;
|
HANDLE hnd;
|
||||||
hnd = _get_osfhandle (fno);
|
hnd = (HANDLE) _get_osfhandle (fno);
|
||||||
FlushFileBuffers (hnd);
|
FlushFileBuffers (hnd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user