remove unused variable/code.

This commit is contained in:
christos 2007-01-20 18:57:41 +00:00
parent d1ddfe10b1
commit 25a0745d2e
1 changed files with 4 additions and 10 deletions

View File

@ -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. * Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__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 <err.h> #include <err.h>
#include <errno.h> #include <errno.h>
@ -75,7 +75,7 @@ extern int pthread__maxconcurrency, pthread__started;
void pthread__debug_init(int ncpu) void pthread__debug_init(int ncpu)
{ {
time_t t; time_t t;
int i, nbuf; int i;
if (getenv("PTHREAD_DEBUGCOUNTERS") != NULL) if (getenv("PTHREAD_DEBUGCOUNTERS") != NULL)
atexit(pthread__debug_printcounters); atexit(pthread__debug_printcounters);
@ -83,13 +83,7 @@ void pthread__debug_init(int ncpu)
if (getenv("PTHREAD_DEBUGLOG") != NULL) { if (getenv("PTHREAD_DEBUGLOG") != NULL) {
t = time(NULL); t = time(NULL);
debugbuf = pthread__debuglog_init(0); debugbuf = pthread__debuglog_init(0);
#ifdef PTHREAD_SA linebuf = malloc(ncpu * sizeof(struct linebuf));
nbuf = ncpu;
#else
nbuf = 1000; /* XXXLWP */
#endif
linebuf = (struct linebuf *)
malloc(ncpu * sizeof(struct linebuf));
if (linebuf == NULL) if (linebuf == NULL)
err(1, "Couldn't allocate linebuf"); err(1, "Couldn't allocate linebuf");
for (i = 0; i < ncpu; i++) for (i = 0; i < ncpu; i++)