Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Fixup ifdrv parameter order.
details: https://anonhg.NetBSD.org/src/rev/b60184a464f4
branches: trunk
changeset: 338599:b60184a464f4
user: roy <roy%NetBSD.org@localhost>
date: Sun May 31 15:08:14 2015 +0000
description:
Fixup ifdrv parameter order.
diffstat:
sys/compat/netbsd32/netbsd32_ioctl.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r fa0b535ee582 -r b60184a464f4 sys/compat/netbsd32/netbsd32_ioctl.c
--- a/sys/compat/netbsd32/netbsd32_ioctl.c Sun May 31 14:43:59 2015 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.c Sun May 31 15:08:14 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_ioctl.c,v 1.74 2015/05/27 21:56:43 matt Exp $ */
+/* $NetBSD: netbsd32_ioctl.c,v 1.75 2015/05/31 15:08:14 roy Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.74 2015/05/27 21:56:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.75 2015/05/31 15:08:14 roy Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -163,7 +163,7 @@
netbsd32_to_ifdrv(struct netbsd32_ifdrv *s32p, struct ifdrv *p, u_long cmd)
{
- memcpy(p->ifd_name, s32p->ifd_name, sizeof s32p->ifd_name);
+ memcpy(p->ifd_name, s32p->ifd_name, sizeof p->ifd_name);
p->ifd_cmd = s32p->ifd_cmd;
p->ifd_len = s32p->ifd_len;
p->ifd_data = (void *)NETBSD32PTR64(s32p->ifd_data);
@@ -504,7 +504,8 @@
static inline void
netbsd32_from_ifdrv(struct ifdrv *p, struct netbsd32_ifdrv *s32p, u_long cmd)
{
- memcpy(p->ifd_name, s32p->ifd_name, sizeof s32p->ifd_name);
+
+ memcpy(s32p->ifd_name, p->ifd_name, sizeof s32p->ifd_name);
s32p->ifd_cmd = p->ifd_cmd;
s32p->ifd_len = p->ifd_len;
NETBSD32PTR32(s32p->ifd_data, p->ifd_data);
Home |
Main Index |
Thread Index |
Old Index