projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a gcc warning.
[gnulib.git]
/
lib
/
write.c
diff --git
a/lib/write.c
b/lib/write.c
index
250b5cc
..
5f0131d
100644
(file)
--- a/
lib/write.c
+++ b/
lib/write.c
@@
-1,5
+1,5
@@
/* POSIX compatible write() function.
/* POSIX compatible write() function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008
-2009
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
@@
-46,7
+46,7
@@
rpl_write (int fd, const void *buf, size_t count)
if (ret < 0)
{
if (GetLastError () == ERROR_NO_DATA
if (ret < 0)
{
if (GetLastError () == ERROR_NO_DATA
- && GetFileType (_get_osfhandle (fd)) == FILE_TYPE_PIPE)
+ && GetFileType (
(HANDLE)
_get_osfhandle (fd)) == FILE_TYPE_PIPE)
{
/* Try to raise signal SIGPIPE. */
raise (SIGPIPE);
{
/* Try to raise signal SIGPIPE. */
raise (SIGPIPE);