Lint warning police -- don't use `//' for comments in C code.

This commit is contained in:
jwise 2005-03-17 17:23:21 +00:00
parent 9411ed143e
commit f579845294
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pthread_lock.c,v 1.13 2005/01/06 17:38:29 mycroft Exp $ */
/* $NetBSD: pthread_lock.c,v 1.14 2005/03/17 17:23:21 jwise Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: pthread_lock.c,v 1.13 2005/01/06 17:38:29 mycroft Exp $");
__RCSID("$NetBSD: pthread_lock.c,v 1.14 2005/03/17 17:23:21 jwise Exp $");
#include <sys/types.h>
#include <sys/lock.h>
@ -257,7 +257,7 @@ pthread_spinunlock(pthread_t thread, pthread_spin_t *lock)
if ((thread->pt_spinlocks == 0) && (thread->pt_next != NULL)) {
PTHREADD_ADD(PTHREADD_SPINPREEMPT);
// pthread__assert(thread->pt_blockgen == thread->pt_unblockgen);
/* pthread__assert(thread->pt_blockgen == thread->pt_unblockgen); */
pthread__switch(thread, thread->pt_next);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: pthread_sa.c,v 1.36 2005/01/06 17:42:31 mycroft Exp $ */
/* $NetBSD: pthread_sa.c,v 1.37 2005/03/17 17:23:21 jwise Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: pthread_sa.c,v 1.36 2005/01/06 17:42:31 mycroft Exp $");
__RCSID("$NetBSD: pthread_sa.c,v 1.37 2005/03/17 17:23:21 jwise Exp $");
#include <err.h>
#include <errno.h>
@ -134,7 +134,7 @@ pthread__upcall(int type, struct sa_t *sas[], int ev, int intr, void *arg)
pthread__assert(t->pt_vpid == sas[1]->sa_cpu);
t->pt_blockedlwp = sas[1]->sa_id;
t->pt_blockgen += 2;
// pthread__assert(t->pt_blockgen <= t->pt_unblockgen + 2);
/* pthread__assert(t->pt_blockgen <= t->pt_unblockgen + 2); */
if (t->pt_cancel)
_lwp_wakeup(t->pt_blockedlwp);
#ifdef PTHREAD__DEBUG