Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys kcpuset_copybits: fix potential endianness problem. Spo...
details: https://anonhg.NetBSD.org/src/rev/87e52e3be722
branches: trunk
changeset: 781126:87e52e3be722
user: rmind <rmind%NetBSD.org@localhost>
date: Mon Aug 20 22:01:29 2012 +0000
description:
kcpuset_copybits: fix potential endianness problem. Spotted by matt@.
diffstat:
sys/kern/subr_kcpuset.c | 6 +++---
sys/sys/kcpuset.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 441fd319523d -r 87e52e3be722 sys/kern/subr_kcpuset.c
--- a/sys/kern/subr_kcpuset.c Mon Aug 20 21:38:09 2012 +0000
+++ b/sys/kern/subr_kcpuset.c Mon Aug 20 22:01:29 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kcpuset.c,v 1.6 2012/06/06 22:22:41 rmind Exp $ */
+/* $NetBSD: subr_kcpuset.c,v 1.7 2012/08/20 22:01:29 rmind Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kcpuset.c,v 1.6 2012/06/06 22:22:41 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kcpuset.c,v 1.7 2012/08/20 22:01:29 rmind Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -302,7 +302,7 @@
}
void
-kcpuset_copybits(const kcpuset_t *kcp, void *bitfield, size_t len)
+kcpuset_copybits(const kcpuset_t *kcp, uint32_t *bitfield, size_t len)
{
size_t rlen = MIN(kc_bitsize, len);
diff -r 441fd319523d -r 87e52e3be722 sys/sys/kcpuset.h
--- a/sys/sys/kcpuset.h Mon Aug 20 21:38:09 2012 +0000
+++ b/sys/sys/kcpuset.h Mon Aug 20 22:01:29 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kcpuset.h,v 1.6 2012/06/06 22:22:41 rmind Exp $ */
+/* $NetBSD: kcpuset.h,v 1.7 2012/08/20 22:01:30 rmind Exp $ */
/*-
* Copyright (c) 2008, 2011 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
int kcpuset_copyin(const cpuset_t *, kcpuset_t *, size_t);
int kcpuset_copyout(kcpuset_t *, cpuset_t *, size_t);
-void kcpuset_copybits(const kcpuset_t *, void *, size_t);
+void kcpuset_copybits(const kcpuset_t *, uint32_t *, size_t);
void kcpuset_zero(kcpuset_t *);
void kcpuset_fill(kcpuset_t *);
Home |
Main Index |
Thread Index |
Old Index