diff options
author | 2014-10-22 23:56:47 +0000 | |
---|---|---|
committer | 2014-10-22 23:56:47 +0000 | |
commit | b5b8c50f23acda0eb8bd12f6f48c662adf81ad72 (patch) | |
tree | 601d0024683835df06c221600fc674203f5f86ad /sys/arch/powerpc/include/endian.h | |
parent | make the description of the syntax of function lists agree (diff) | |
download | wireguard-openbsd-b5b8c50f23acda0eb8bd12f6f48c662adf81ad72.tar.xz wireguard-openbsd-b5b8c50f23acda0eb8bd12f6f48c662adf81ad72.zip |
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/powerpc/include/endian.h')
-rw-r--r-- | sys/arch/powerpc/include/endian.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/powerpc/include/endian.h b/sys/arch/powerpc/include/endian.h index d8e4c5eb38c..11ce8200c8c 100644 --- a/sys/arch/powerpc/include/endian.h +++ b/sys/arch/powerpc/include/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.20 2014/07/12 16:25:09 guenther Exp $ */ +/* $OpenBSD: endian.h,v 1.21 2014/10/22 23:56:47 dlg Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -30,7 +30,7 @@ #ifdef _KERNEL static inline __uint16_t -__mswap16(volatile __uint16_t *m) +__mswap16(volatile const __uint16_t *m) { __uint16_t v; @@ -42,7 +42,7 @@ __mswap16(volatile __uint16_t *m) } static inline __uint32_t -__mswap32(volatile __uint32_t *m) +__mswap32(volatile const __uint32_t *m) { __uint32_t v; @@ -54,7 +54,7 @@ __mswap32(volatile __uint32_t *m) } static inline __uint64_t -__mswap64(volatile __uint64_t *m) +__mswap64(volatile const __uint64_t *m) { __uint32_t *a = (__uint32_t *)m; __uint64_t v; |