Source-Changes-HG archive

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

[src/trunk]: src/sys/net Move if_name() from net_osdep.h to if.h. net_osdep.h...



details:   https://anonhg.NetBSD.org/src/rev/793155df05d7
branches:  trunk
changeset: 322362:793155df05d7
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue May 01 06:50:06 2018 +0000

description:
Move if_name() from net_osdep.h to if.h. net_osdep.h is now unused and can
be removed - the other BSDs did the same.

Discussed with Kengo (if.h suggested by him).

diffstat:

 sys/net/if.h        |  3 ++-
 sys/net/net_osdep.h |  4 +---
 2 files changed, 3 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r eb1dce463e87 -r 793155df05d7 sys/net/if.h
--- a/sys/net/if.h      Tue May 01 05:42:26 2018 +0000
+++ b/sys/net/if.h      Tue May 01 06:50:06 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.260 2018/04/19 21:20:43 christos Exp $        */
+/*     $NetBSD: if.h,v 1.261 2018/05/01 06:50:06 maxv Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -405,6 +405,7 @@
 #define        if_iqdrops      if_data.ifi_iqdrops
 #define        if_noproto      if_data.ifi_noproto
 #define        if_lastchange   if_data.ifi_lastchange
+#define        if_name(ifp)    ((ifp)->if_xname)
 
 #define        IFF_UP          0x0001          /* interface is up */
 #define        IFF_BROADCAST   0x0002          /* broadcast address valid */
diff -r eb1dce463e87 -r 793155df05d7 sys/net/net_osdep.h
--- a/sys/net/net_osdep.h       Tue May 01 05:42:26 2018 +0000
+++ b/sys/net/net_osdep.h       Tue May 01 06:50:06 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: net_osdep.h,v 1.19 2018/02/08 21:02:05 maxv Exp $      */
+/*     $NetBSD: net_osdep.h,v 1.20 2018/05/01 06:50:06 maxv Exp $      */
 /*     $KAME: net_osdep.h,v 1.51 2001/07/06 06:21:43 itojun Exp $      */
 
 /*
@@ -301,7 +301,5 @@
 #define _NET_NET_OSDEP_H_
 #ifdef _KERNEL
 
-#define if_name(ifp)   ((ifp)->if_xname)
-
 #endif /*_KERNEL*/
 #endif /* !_NET_NET_OSDEP_H_ */



Home | Main Index | Thread Index | Old Index