aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-22 11:55:43 +0200
committerOndřej Bílka <neleai@seznam.cz>2014-06-22 13:46:14 +0200
commitbd3675f9a3e91edf997c0515f0f1fce1669f038c (patch)
treeb4ed12d3cf1563c786d341fecae48b9f0ed605cd /nscd
parentd03efb2f979defd473955a455d66b949961d26b2 (diff)
downloadglibc-bd3675f9a3e91edf997c0515f0f1fce1669f038c.zip
glibc-bd3675f9a3e91edf997c0515f0f1fce1669f038c.tar.gz
glibc-bd3675f9a3e91edf997c0515f0f1fce1669f038c.tar.bz2
nscd: Remove unused typedef and variable.
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: <https://lists.gnu.org/archive/html/bug-hurd/2014-06/msg00101.html>. Tested on x86_64-linux-gnu.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c
index a4c71e9..3dd1135 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;