Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/sys Fix ifdata"o2n"() macro. This is not a real b...



details:   https://anonhg.NetBSD.org/src/rev/873395078ed6
branches:  trunk
changeset: 455679:873395078ed6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Apr 10 04:28:03 2019 +0000

description:
Fix ifdata"o2n"() macro. This is not a real bug because this macro is not used
from anywhere. Both of SIOCGIFDATA and SIOCZIFDATA use "n2o" because
ZIFDATA is almost the same as GIFDATA except zeroing after read.

diffstat:

 sys/compat/sys/sockio.h |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 3541f1052dae -r 873395078ed6 sys/compat/sys/sockio.h
--- a/sys/compat/sys/sockio.h   Wed Apr 10 04:10:53 2019 +0000
+++ b/sys/compat/sys/sockio.h   Wed Apr 10 04:28:03 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockio.h,v 1.13 2019/01/27 02:08:41 pgoyette Exp $     */
+/*     $NetBSD: sockio.h,v 1.14 2019/04/10 04:28:03 msaitoh Exp $      */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993, 1994
@@ -175,7 +175,6 @@
 #define ifdatao2n(oi, ni) \
        do { \
                (void)memcpy((ni), (oi),  sizeof(*(oi))); \
-                   sizeof((oi)->ifr_name)); \
                (ni)->ifi_lastchange.tv_sec = (oi)->ifi_lastchange.tv_sec; \
                (ni)->ifi_lastchange.tv_nsec = \
                    (oi)->ifi_lastchange.tv_usec * 1000; \



Home | Main Index | Thread Index | Old Index