From: Roland McGrath Date: Sun, 16 Oct 2005 09:45:42 +0000 (+0000) Subject: 2005-08-05 Roland McGrath X-Git-Tag: cvs/fedora-glibc-2_3-20051017T0518~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53c207b4a5e4b20e4193e983dcbbe822e793f374;p=thirdparty%2Fglibc.git 2005-08-05 Roland McGrath [BZ #1250] * sysdeps/mach/hurd/mig-reply.c (reply_port): Don't use ?: as lvalue. Reported by Alfred M. Szmidt . --- diff --git a/sysdeps/mach/hurd/mig-reply.c b/sysdeps/mach/hurd/mig-reply.c index 78bac4bffc2..5e40c147b46 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;