Mercurial > gnulib
changeset 30181:e8f58deb0be0
Cast the _get_osfhandle result, to avoid a warning.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 26 Sep 2008 15:12:55 +0200 |
parents | 18e123bac35c |
children | b9b7a06b0c68 |
files | lib/stdio-write.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/stdio-write.c Fri Sep 26 14:44:52 2008 +0200 +++ b/lib/stdio-write.c Fri Sep 26 15:12:55 2008 +0200 @@ -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); \