Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176074033
D27034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D27034.diff
View Options
Index: head/sys/net/if_media.c
===================================================================
--- head/sys/net/if_media.c
+++ head/sys/net/if_media.c
@@ -85,11 +85,8 @@
* Initialize if_media struct for a specific interface instance.
*/
void
-ifmedia_init(ifm, dontcare_mask, change_callback, status_callback)
- struct ifmedia *ifm;
- int dontcare_mask;
- ifm_change_cb_t change_callback;
- ifm_stat_cb_t status_callback;
+ifmedia_init(struct ifmedia *ifm, int dontcare_mask,
+ ifm_change_cb_t change_callback, ifm_stat_cb_t status_callback)
{
LIST_INIT(&ifm->ifm_list);
@@ -101,8 +98,7 @@
}
void
-ifmedia_removeall(ifm)
- struct ifmedia *ifm;
+ifmedia_removeall(struct ifmedia *ifm)
{
struct ifmedia_entry *entry;
@@ -119,11 +115,7 @@
* for a specific interface instance.
*/
void
-ifmedia_add(ifm, mword, data, aux)
- struct ifmedia *ifm;
- int mword;
- int data;
- void *aux;
+ifmedia_add(struct ifmedia *ifm, int mword, int data, void *aux)
{
struct ifmedia_entry *entry;
@@ -154,10 +146,7 @@
* supported media for a specific interface instance.
*/
void
-ifmedia_list_add(ifm, lp, count)
- struct ifmedia *ifm;
- struct ifmedia_entry *lp;
- int count;
+ifmedia_list_add(struct ifmedia *ifm, struct ifmedia_entry *lp, int count)
{
int i;
@@ -174,10 +163,7 @@
* media-change callback.
*/
void
-ifmedia_set(ifm, target)
- struct ifmedia *ifm;
- int target;
-
+ifmedia_set(struct ifmedia *ifm, int target)
{
struct ifmedia_entry *match;
@@ -219,11 +205,8 @@
* Device-independent media ioctl support function.
*/
int
-ifmedia_ioctl(ifp, ifr, ifm, cmd)
- struct ifnet *ifp;
- struct ifreq *ifr;
- struct ifmedia *ifm;
- u_long cmd;
+ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr, struct ifmedia *ifm,
+ u_long cmd)
{
struct ifmedia_entry *match;
struct ifmediareq *ifmr = (struct ifmediareq *) ifr;
@@ -344,10 +327,7 @@
*
*/
static struct ifmedia_entry *
-ifmedia_match(ifm, target, mask)
- struct ifmedia *ifm;
- int target;
- int mask;
+ifmedia_match(struct ifmedia *ifm, int target, int mask)
{
struct ifmedia_entry *match, *next;
@@ -453,8 +433,7 @@
* print a media word.
*/
static void
-ifmedia_printword(ifmw)
- int ifmw;
+ifmedia_printword(int ifmw)
{
const struct ifmedia_description *desc;
const struct ifmedia_type_to_subtype *ttos;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 16, 9:10 PM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40913661
Default Alt Text
D27034.diff (2 KB)
Attached To
Mode
D27034: Cleanup of net/if_media.c
Attached
Detach File
Event Timeline
Log In to Comment