From patchwork Sun Jun 22 09:55:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 1649 Received: (qmail 24908 invoked by alias); 22 Jun 2014 09:55:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 24894 invoked by uid 89); 22 Jun 2014 09:55:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: hera.aquilenet.fr From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: libc-alpha@sourceware.org Cc: bug-hurd@gnu.org Subject: [PATCH] nscd: Remove unused typedef and variable. X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Sun, 22 Jun 2014 11:55:43 +0200 Message-ID: <87r42hclpc.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 The attached patch removed the unused ‘thread_info_t’ typedef and the ‘thread_info’ variable from nscd.c. The former conflicts with a GNU Mach typedef, and the latter conflicts with a GNU Mach function declaration: . Tested on x86_64-linux-gnu. Thanks, Ludo’. 2014-06-22 Ludovic Courtès * nscd/nscd.c (thread_info_t): Remove typedef. (thread_info): Remove variable. diff --git a/nscd/nscd.c b/nscd/nscd.c index 5680378..d4faa29 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -56,20 +56,6 @@ #define PACKAGE _libc_intl_domainname -/* Structure used by main() thread to keep track of the number of - active threads. Used to limit how many threads it will create - and under a shutdown condition to wait till all in-progress - requests have finished before "turning off the lights". */ - -typedef struct -{ - int num_active; - pthread_cond_t thread_exit_cv; - pthread_mutex_t mutex; -} thread_info_t; - -thread_info_t thread_info; - int do_shutdown; int disabled_passwd; int disabled_group;