Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev add missing const.
details: https://anonhg.NetBSD.org/src/rev/d43a56deb440
branches: trunk
changeset: 581296:d43a56deb440
user: christos <christos%NetBSD.org@localhost>
date: Tue May 31 00:48:57 2005 +0000
description:
add missing const.
diffstat:
sys/dev/aurateconv.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r f1ad5a67e112 -r d43a56deb440 sys/dev/aurateconv.c
--- a/sys/dev/aurateconv.c Tue May 31 00:47:54 2005 +0000
+++ b/sys/dev/aurateconv.c Tue May 31 00:48:57 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aurateconv.c,v 1.13 2005/05/30 04:45:07 christos Exp $ */
+/* $NetBSD: aurateconv.c,v 1.14 2005/05/31 00:48:57 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aurateconv.c,v 1.13 2005/05/30 04:45:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aurateconv.c,v 1.14 2005/05/31 00:48:57 christos Exp $");
#include <sys/systm.h>
#include <sys/types.h>
@@ -258,7 +258,7 @@
(P)[0] = vv; \
(P)[1] = vv >> 8; \
} while (/*CONSTCOND*/ 0)
-# define READ_S16BE(P) *(int16_t*)(P)
+# define READ_S16BE(P) *(const int16_t*)(P)
# define WRITE_S16BE(P, V) *(int16_t*)(P) = V
# define READ_S32LE(P) (int32_t)((P)[0] | ((P)[1]<<8) | ((P)[2]<<16) | (((int8_t)((P)[3]))<<24))
# define WRITE_S32LE(P, V) \
@@ -269,7 +269,7 @@
(P)[2] = vvv >> 16; \
(P)[3] = vvv >> 24; \
} while (/*CONSTCOND*/ 0)
-# define READ_S32BE(P) *(int32_t*)(P)
+# define READ_S32BE(P) *(const int32_t*)(P)
# define WRITE_S32BE(P, V) *(int32_t*)(P) = V
#endif /* !LITTLE_ENDIAN */
#define READ_S24LE(P) (int32_t)((P)[0] | ((P)[1]<<8) | (((int8_t)((P)[2]))<<16))
Home |
Main Index |
Thread Index |
Old Index