summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-01-06 07:17:01 +0000
committerd <d@openbsd.org>2000-01-06 07:17:01 +0000
commit515e1beb85eb6899e997377e02d4d4b5ff6fbd7a (patch)
tree8b04cc4808f7d4f2a9838169de7ee892bd19d0d6 /lib/libpthread
parentput proc pid in fatal error string; don't call abort() - instead deliver SIGABRT directly (inside #if); unused vars (diff)
downloadwireguard-openbsd-515e1beb85eb6899e997377e02d4d4b5ff6fbd7a.tar.xz
wireguard-openbsd-515e1beb85eb6899e997377e02d4d4b5ff6fbd7a.zip
volatile, unused vars
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_file.c b/lib/libpthread/uthread/uthread_file.c
index e1c234fc3d4..bcdecff65e2 100644
--- a/lib/libpthread/uthread/uthread_file.c
+++ b/lib/libpthread/uthread/uthread_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_file.c,v 1.4 1999/11/25 07:01:34 d Exp $ */
+/* $OpenBSD: uthread_file.c,v 1.5 2000/01/06 07:17:01 d Exp $ */
/*
* Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -59,7 +59,7 @@
*/
struct file_lock {
LIST_ENTRY(file_lock) entry; /* Entry if file list. */
- TAILQ_HEAD(lock_head, pthread)
+ V_TAILQ_HEAD(lock_head, pthread)
l_head; /* Head of queue for threads */
/* waiting on this lock. */
FILE *fp; /* The target file. */
@@ -305,7 +305,6 @@ _ftrylockfile(FILE * fp)
void
_funlockfile(FILE * fp)
{
- int status;
int idx = file_idx(fp);
struct file_lock *p;