summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 07:17:02 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 07:17:02 +0000
commitcb16363e627630a41a75265790952dc8d85f15a8 (patch)
treebd1d6ea8e1a4d9179a4e9d7109a5c61e7791a8cc /lib
parent5b3622c4df16c16f07fcf41b07dcaa99b1c4d774 (diff)
volatile, unused vars
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/uthread_file.c5
-rw-r--r--lib/libpthread/uthread/uthread_file.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_file.c b/lib/libc_r/uthread/uthread_file.c
index e1c234fc3d4..bcdecff65e2 100644
--- a/lib/libc_r/uthread/uthread_file.c
+++ b/lib/libc_r/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;
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;