Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix alignment problem in the garbage-collection cod...
details: https://anonhg.NetBSD.org/src/rev/2b922d20a7ed
branches: trunk
changeset: 472725:2b922d20a7ed
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 05 19:05:43 1999 +0000
description:
Fix alignment problem in the garbage-collection code path.
diffstat:
sys/kern/uipc_usrreq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 4524dd32d52d -r 2b922d20a7ed sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c Wed May 05 18:47:40 1999 +0000
+++ b/sys/kern/uipc_usrreq.c Wed May 05 19:05:43 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_usrreq.c,v 1.42 1999/04/30 18:43:00 thorpej Exp $ */
+/* $NetBSD: uipc_usrreq.c,v 1.43 1999/05/05 19:05:43 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1213,7 +1213,7 @@
continue;
qfds = (cm->cmsg_len - ALIGN(sizeof(*cm)))
/ sizeof(struct file *);
- rp = (struct file **)(cm + 1);
+ rp = (struct file **)ALIGN(cm + 1);
for (i = 0; i < qfds; i++) {
struct file *fp = *rp;
if (discard)
Home |
Main Index |
Thread Index |
Old Index