Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
Show First 20 Lines • Show All 4,821 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
int | int | ||||
if_gettype(if_t ifp) | if_gettype(if_t ifp) | ||||
{ | { | ||||
return (ifp->if_type); | return (ifp->if_type); | ||||
} | } | ||||
void * | |||||
glebius: What is the reason to make it non-void? | |||||
Done Inline ActionsIt was for consistency with other setters, but I guess that's not consistent either. I'll just make it void. jhibbits: It was for consistency with other setters, but I guess that's not consistent either. I'll just… | |||||
if_getllsoftc(if_t ifp) | |||||
{ | |||||
return (ifp->if_llsoftc); | |||||
} | |||||
void | |||||
if_setllsoftc(if_t ifp, void *llsoftc) | |||||
{ | |||||
ifp->if_llsoftc = llsoftc; | |||||
}; | |||||
#ifdef DDB | #ifdef DDB | ||||
static void | static void | ||||
if_show_ifnet(struct ifnet *ifp) | if_show_ifnet(struct ifnet *ifp) | ||||
{ | { | ||||
if (ifp == NULL) | if (ifp == NULL) | ||||
return; | return; | ||||
db_printf("%s:\n", ifp->if_xname); | db_printf("%s:\n", ifp->if_xname); | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |
What is the reason to make it non-void?