summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pipe.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-01-29 17:37:54 +0000
committerChristopher Faylor <me@cgf.cx>2010-01-29 17:37:54 +0000
commit2b37c431b1c2f4e90fd7c6130b8bddc9e9c019f9 (patch)
treefd975777ae3c324240216cbcd44f9cdfa0e5c051 /winsup/cygwin/pipe.cc
parent3432d6f1f766adc1b8c14af4cc63b6ae25399ada (diff)
downloadcygnal-2b37c431b1c2f4e90fd7c6130b8bddc9e9c019f9.tar.gz
cygnal-2b37c431b1c2f4e90fd7c6130b8bddc9e9c019f9.tar.bz2
cygnal-2b37c431b1c2f4e90fd7c6130b8bddc9e9c019f9.zip
* libc/strfmon.c (__setup_vars): Fix compiler warning about assigning const
strings. Compare a pointer to NULL rather than '\0'. * dll_init.cc (dll_dllcrt0_1): Minor comment fix. * pipe.cc (fhandler_pipe::create_selectable): Remove Win9x accommodation.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 2d351fd68..5194856bc 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -251,7 +251,7 @@ fhandler_pipe::create_selectable (LPSECURITY_ATTRIBUTES sa_ptr, HANDLE& r,
psize, NMPWAIT_USE_DEFAULT_WAIT, sa_ptr);
/* Win 95 seems to return NULL instead of INVALID_HANDLE_VALUE */
- if (r && r != INVALID_HANDLE_VALUE)
+ if (r != INVALID_HANDLE_VALUE)
{
debug_printf ("pipe read handle %p", r);
break;