summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-10-22 23:56:48 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-10-22 23:56:48 +0000
commit94c9ef987ba06e5207759a01ae8b71f4d2880f5a (patch)
tree6bc088e19b77e184e1268c7824a8a2f2dd627b0e /sys/arch/sparc64/include
parenta1f0a87d1026a85e723ee049539d0d784ffc2be8 (diff)
make [bl]emtoh{16,32,64} take volatile const foo *, not volatile foo *
while in the manpage add volatile where the code has it too. ok miod@ guenther@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/endian.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/include/endian.h b/sys/arch/sparc64/include/endian.h
index b2bb346d4ed..72b3e4928da 100644
--- a/sys/arch/sparc64/include/endian.h
+++ b/sys/arch/sparc64/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.6 2014/07/12 16:25:09 guenther Exp $ */
+/* $OpenBSD: endian.h,v 1.7 2014/10/22 23:56:47 dlg Exp $ */
#ifndef _MACHINE_ENDIAN_H_
#define _MACHINE_ENDIAN_H_
@@ -10,7 +10,7 @@
#define __ASI_P_L 0x88 /* == ASI_PRIMARY_LITTLE */
static inline __uint16_t
-__mswap16(volatile __uint16_t *m)
+__mswap16(volatile const __uint16_t *m)
{
__uint16_t v;
@@ -22,7 +22,7 @@ __mswap16(volatile __uint16_t *m)
}
static inline __uint32_t
-__mswap32(volatile __uint32_t *m)
+__mswap32(volatile const __uint32_t *m)
{
__uint32_t v;
@@ -34,7 +34,7 @@ __mswap32(volatile __uint32_t *m)
}
static inline __uint64_t
-__mswap64(volatile __uint64_t *m)
+__mswap64(volatile const __uint64_t *m)
{
__uint64_t v;