From ea3df621c91924d81691f80caed55b7150736e95 Mon Sep 17 00:00:00 2001 From: brooks Date: Fri, 8 Oct 2004 00:24:30 +0000 Subject: Since net/net_osdep.c contained only one function that could be trivially implemented as a macro, do that and remove it. NetBSD did this quite a while ago. --- sys/net/net_osdep.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/net/net_osdep.h') diff --git a/sys/net/net_osdep.h b/sys/net/net_osdep.h index 2cafa02..66e99b5 100644 --- a/sys/net/net_osdep.h +++ b/sys/net/net_osdep.h @@ -319,8 +319,7 @@ #define __NET_NET_OSDEP_H_DEFINED_ #ifdef _KERNEL -struct ifnet; -extern const char *if_name(struct ifnet *); +#define if_name(ifp) ((ifp)->if_xname) #define HAVE_OLD_BPF #define HAVE_NEW_BPFATTACH -- cgit v1.1