From owner-svn-src-head@FreeBSD.ORG Thu Mar 11 16:58:16 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3892E1065678; Thu, 11 Mar 2010 16:58:16 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 277858FC12; Thu, 11 Mar 2010 16:58:16 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o2BGwGNd088068; Thu, 11 Mar 2010 16:58:16 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o2BGwGT4088066; Thu, 11 Mar 2010 16:58:16 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201003111658.o2BGwGT4088066@svn.freebsd.org> From: John Baldwin Date: Thu, 11 Mar 2010 16:58:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r205020 - head/lib/libc/rpc X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 16:58:16 -0000 Author: jhb Date: Thu Mar 11 16:58:15 2010 New Revision: 205020 URL: http://svn.freebsd.org/changeset/base/205020 Log: Fix a bug in the previous change: remove function-local definition of tcp_key and udp_key that shadows the global definition. PR: threads/144558 Submitted by: Sam Robb Modified: head/lib/libc/rpc/rpc_generic.c Modified: head/lib/libc/rpc/rpc_generic.c ============================================================================== --- head/lib/libc/rpc/rpc_generic.c Thu Mar 11 15:33:12 2010 (r205019) +++ head/lib/libc/rpc/rpc_generic.c Thu Mar 11 16:58:15 2010 (r205020) @@ -248,7 +248,6 @@ __rpc_getconfip(nettype) static char *netid_udp_main; struct netconfig *dummy; int main_thread; - static thread_key_t tcp_key, udp_key; if ((main_thread = thr_main())) { netid_udp = netid_udp_main;