aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-08-05 21:16:35 +0000
committerRoland McGrath <roland@gnu.org>2005-08-05 21:16:35 +0000
commitbf3534a59e15fd3f1da67d2a0d75f713010a4996 (patch)
treeb645edafaf220cfec023ed6a242fb8526923f16d
parent8dd5f2edc74be8a6270e706a1f999c8af6be90fb (diff)
downloadglibc-bf3534a59e15fd3f1da67d2a0d75f713010a4996.tar
glibc-bf3534a59e15fd3f1da67d2a0d75f713010a4996.tar.gz
glibc-bf3534a59e15fd3f1da67d2a0d75f713010a4996.tar.bz2
glibc-bf3534a59e15fd3f1da67d2a0d75f713010a4996.zip
* sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/mach/hurd/mig-reply.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b40ce1111..a6c92eced4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-08-05 Roland McGrath <roland@redhat.com>
+
+ * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue.
+
2005-08-03 Dwayne Grant McConnell <dgm69@us.ibm.com>
* sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s):
diff --git a/sysdeps/mach/hurd/mig-reply.c b/sysdeps/mach/hurd/mig-reply.c
index 78bac4bffc..5e40c147b4 100644
--- a/sysdeps/mach/hurd/mig-reply.c
+++ b/sysdeps/mach/hurd/mig-reply.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994,1995,1996,1997,2005 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
@@ -22,7 +22,7 @@
#define GETPORT \
mach_port_t *portloc = \
(mach_port_t *) __hurd_threadvar_location (_HURD_THREADVAR_MIG_REPLY)
-#define reply_port (use_threadvar ? *portloc : global_reply_port)
+#define reply_port (*(use_threadvar ? portloc : &global_reply_port))
static int use_threadvar;
static mach_port_t global_reply_port;