From 25a0745d2e13416872c7ddac11f6b2a05a73e9b8 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 20 Jan 2007 18:57:41 +0000 Subject: [PATCH] remove unused variable/code. --- lib/libpthread/pthread_debug.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/libpthread/pthread_debug.c b/lib/libpthread/pthread_debug.c index 7e4961281d90..283a04a2dce4 100644 --- a/lib/libpthread/pthread_debug.c +++ b/lib/libpthread/pthread_debug.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_debug.c,v 1.10 2006/12/23 05:14:47 ad Exp $ */ +/* $NetBSD: pthread_debug.c,v 1.11 2007/01/20 18:57:41 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__RCSID("$NetBSD: pthread_debug.c,v 1.10 2006/12/23 05:14:47 ad Exp $"); +__RCSID("$NetBSD: pthread_debug.c,v 1.11 2007/01/20 18:57:41 christos Exp $"); #include #include @@ -75,7 +75,7 @@ extern int pthread__maxconcurrency, pthread__started; void pthread__debug_init(int ncpu) { time_t t; - int i, nbuf; + int i; if (getenv("PTHREAD_DEBUGCOUNTERS") != NULL) atexit(pthread__debug_printcounters); @@ -83,13 +83,7 @@ void pthread__debug_init(int ncpu) if (getenv("PTHREAD_DEBUGLOG") != NULL) { t = time(NULL); debugbuf = pthread__debuglog_init(0); -#ifdef PTHREAD_SA - nbuf = ncpu; -#else - nbuf = 1000; /* XXXLWP */ -#endif - linebuf = (struct linebuf *) - malloc(ncpu * sizeof(struct linebuf)); + linebuf = malloc(ncpu * sizeof(struct linebuf)); if (linebuf == NULL) err(1, "Couldn't allocate linebuf"); for (i = 0; i < ncpu; i++)