about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2008-08-13 02:39:55 +0000
committerRoland McGrath <roland@gnu.org>2008-08-13 02:39:55 +0000
commit1c6e82eca7bb12ee71ed9223e0f7de410dd6c4a2 (patch)
treeb79a4e4c6390039cfaf676788daf738d77ff6deb
parent8b25443256cbc9910dc7fe5f20da39c4932c9367 (diff)
downloadglibc-1c6e82eca7bb12ee71ed9223e0f7de410dd6c4a2.tar.gz
glibc-1c6e82eca7bb12ee71ed9223e0f7de410dd6c4a2.tar.xz
glibc-1c6e82eca7bb12ee71ed9223e0f7de410dd6c4a2.zip
2008-08-12 Roland McGrath <roland@frob.com>
	* hurd/hurd/signal.h (HURD_MSGPORT_RPC): Avoid -Wparenthesis triggers,
	in case used outside of libc.
	Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>
-rw-r--r--hurd/hurd/signal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h
index 39fa0f857c..d4bcaf26aa 100644
--- a/hurd/hurd/signal.h
+++ b/hurd/hurd/signal.h
@@ -1,5 +1,6 @@
 /* Implementing POSIX.1 signals under the Hurd.
-   Copyright (C) 1993,94,95,96,98,99,2002,2007 Free Software Foundation, Inc.
+   Copyright (C) 1993,94,95,96,98,99,2002,2007,2008
+	Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -342,10 +343,12 @@ extern mach_msg_timeout_t _hurd_interrupted_rpc_timeout;
     do									      \
       {									      \
 	/* Get the message port.  */					      \
-	if (__err = (fetch_msgport_expr))				      \
+	__err = (fetch_msgport_expr);					      \
+	if (__err)							      \
 	  break;							      \
 	/* Get the reference port.  */					      \
-	if (__err = (fetch_refport_expr))				      \
+	_err = (fetch_refport_expr);					      \
+	if (__err)							      \
 	  {								      \
 	    /* Couldn't get it; deallocate MSGPORT and fail.  */	      \
 	    __mach_port_deallocate (__mach_task_self (), msgport);	      \