diff options
Diffstat (limited to 'sbin/ifconfig/ifmedia.c')
-rw-r--r-- | sbin/ifconfig/ifmedia.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/ifconfig/ifmedia.c b/sbin/ifconfig/ifmedia.c index a3d3036..947b961 100644 --- a/sbin/ifconfig/ifmedia.c +++ b/sbin/ifconfig/ifmedia.c @@ -184,8 +184,8 @@ media_status(int s) free(media_list); } -static struct ifmediareq * -getifmediastate(int s) +struct ifmediareq * +ifmedia_getstate(int s) { static struct ifmediareq *ifmr = NULL; int *mwords; @@ -249,7 +249,7 @@ setmedia(const char *val, int d, int s, const struct afswtch *afp) struct ifmediareq *ifmr; int subtype; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); /* * We are primarily concerned with the top-level type. @@ -294,7 +294,7 @@ domediaopt(const char *val, int clear, int s) struct ifmediareq *ifmr; int options; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); options = get_media_options(IFM_TYPE(ifmr->ifm_ulist[0]), val); @@ -319,7 +319,7 @@ setmediainst(const char *val, int d, int s, const struct afswtch *afp) struct ifmediareq *ifmr; int inst; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); inst = atoi(val); if (inst < 0 || inst > IFM_INST_MAX) @@ -338,7 +338,7 @@ setmediamode(const char *val, int d, int s, const struct afswtch *afp) struct ifmediareq *ifmr; int mode; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); mode = get_media_mode(IFM_TYPE(ifmr->ifm_ulist[0]), val); |