diff options
author | jb <jb@FreeBSD.org> | 1998-05-05 21:46:30 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-05 21:46:30 +0000 |
commit | 39a9cfde1477c98837881dae38cf2adbc6ca84eb (patch) | |
tree | 29564a561c0383b4322a573d4bfccd04a9d1772e /lib | |
parent | b01afb1a08a0246d1f7c3586774b43274bbedcce (diff) | |
download | FreeBSD-src-39a9cfde1477c98837881dae38cf2adbc6ca84eb.zip FreeBSD-src-39a9cfde1477c98837881dae38cf2adbc6ca84eb.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/include/spinlock.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/include/spinlock.h b/lib/libc/include/spinlock.h index 5c64264..50843ce 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_ */ |