From f1daac6f220fd732b659b648fcccc648b062e304 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Tue, 5 May 1998 21:46:30 +0000 Subject: [PATCH] In a threaded library, expect the lock field to be declared volatile, so provide function prototypes that respect that, avoiding a gcc warning that `volatile' is being thrown away. --- lib/libc/include/spinlock.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/libc/include/spinlock.h b/lib/libc/include/spinlock.h index 5c6426448f2..50843ceac49 100644 --- a/lib/libc/include/spinlock.h +++ b/lib/libc/include/spinlock.h @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: spinlock.h,v 1.1 1998/03/09 05:05:32 jb Exp $ * * Lock definitions used in both libc and libpthread. * @@ -43,10 +43,10 @@ * Thread function prototype definitions: */ __BEGIN_DECLS -long _atomic_lock __P((long *, long)); -long _atomic_unlock __P((long *)); -void _spinlock __P((long *)); -void _spinunlock __P((long *)); +long _atomic_lock __P((volatile long *, long)); +long _atomic_unlock __P((volatile long *)); +void _spinlock __P((volatile long *)); +void _spinunlock __P((volatile long *)); __END_DECLS #endif /* _SPINLOCK_H_ */