From bd3675f9a3e91edf997c0515f0f1fce1669f038c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 22 Jun 2014 11:55:43 +0200 Subject: nscd: Remove unused typedef and variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- nscd/nscd.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'nscd') diff --git a/nscd/nscd.c b/nscd/nscd.c index a4c71e90e2..3dd1135b46 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -57,20 +57,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; -- cgit v1.2.3