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: 362514 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3711F14001A for ; Sun, 22 Jun 2014 19:55:56 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; q=dns; s=default; b=GNyOEd5ZDLBgQW/T GqcfjFbzKbAYwDeCp5nWsdlxq2lQYhfgw6avErWKWAhtvLJcpt+soRntyETsVBiE ebPpxEAUvLI1UH2xDDiw7/UM9VEci7pm6YeKtUt6gRPpnkqee4WFShjayC0ySeAj zK2CxO2DQGfsVGKESnjUPrDb2D8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; s=default; bh=H/0S1qszdaLe+4P+Ks3JxI pMn0k=; b=OYKinZSPbEcEjl5JiyvXDDsVp6yAnR4Q041/N8kavtiqKabItTDGdw WiPuuhAAR+C8fvpzQYWJnWOV7XGu1kui3sPjyG+B4vHJzI7jVAfMQVIk13AtcLAx JZtBxK1Aozdz2v+eo+Y5rx2GUq7P0luQOQGEyceTqgLezkojKyCig= 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;