projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be602af
)
Cast the _get_osfhandle result, to avoid a warning.
author
Bruno Haible
<bruno@clisp.org>
Fri, 26 Sep 2008 13:12:55 +0000
(15:12 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Fri, 26 Sep 2008 13:12:55 +0000
(15:12 +0200)
lib/stdio-write.c
patch
|
blob
|
history
diff --git
a/lib/stdio-write.c
b/lib/stdio-write.c
index 1bd1be29ebfdc0a00f9e516c198d790c1f7ee66d..f1d0fcb730566c30b61714d872ae0d51a048afff 100644
(file)
--- a/
lib/stdio-write.c
+++ b/
lib/stdio-write.c
@@
-49,7
+49,8
@@
if (FAILED && GetLastError () == ERROR_NO_DATA && ferror (stream)) \
{ \
int fd = fileno (stream); \
- if (fd >= 0 && GetFileType (_get_osfhandle (fd)) == FILE_TYPE_PIPE) \
+ if (fd >= 0 \
+ && GetFileType ((HANDLE) _get_osfhandle (fd)) == FILE_TYPE_PIPE)\
{ \
/* Try to raise signal SIGPIPE. */ \
raise (SIGPIPE); \