Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common pass the address of the field, instead of ...
details: https://anonhg.NetBSD.org/src/rev/4473a4ade91f
branches: trunk
changeset: 745059:4473a4ade91f
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Feb 22 09:42:20 2020 +0000
description:
pass the address of the field, instead of relying on it being the first
field of the structure, no functional change
diffstat:
sys/compat/common/uipc_syscalls_40.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 3049eff5e479 -r 4473a4ade91f sys/compat/common/uipc_syscalls_40.c
--- a/sys/compat/common/uipc_syscalls_40.c Sat Feb 22 09:34:26 2020 +0000
+++ b/sys/compat/common/uipc_syscalls_40.c Sat Feb 22 09:42:20 2020 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: uipc_syscalls_40.c,v 1.21 2019/12/12 02:15:42 pgoyette Exp $ */
+/* $NetBSD: uipc_syscalls_40.c,v 1.22 2020/02/22 09:42:20 maxv Exp $ */
/* written by Pavel Cahyna, 2006. Public domain. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_40.c,v 1.21 2019/12/12 02:15:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_40.c,v 1.22 2020/02/22 09:42:20 maxv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -119,7 +119,7 @@
} else {
space -= sa->sa_len - sizeof(*sa);
if (space >= sz) {
- error = copyout(&ifr, ifrp,
+ error = copyout(&ifr.ifr_name, ifrp,
sizeof(ifr.ifr_name));
if (error == 0) {
error = copyout(sa,
Home |
Main Index |
Thread Index |
Old Index