Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111308983
D37442.id113650.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1018 B
Referenced Files
None
Subscribers
None
D37442.id113650.diff
View Options
diff --git a/stand/libofw/ofw_net.c b/stand/libofw/ofw_net.c
--- a/stand/libofw/ofw_net.c
+++ b/stand/libofw/ofw_net.c
@@ -53,22 +53,26 @@
extern struct netif_stats ofwn_stats[];
struct netif_dif ofwn_ifs[] = {
- /* dif_unit dif_nsel dif_stats dif_private */
- { 0, 1, &ofwn_stats[0], 0, },
+ {
+ .dif_unit=0,
+ .dif_nsel=1,
+ .dif_stats=&ofwn_stats[0],
+ .dif_private=0,
+ },
};
struct netif_stats ofwn_stats[nitems(ofwn_ifs)];
struct netif_driver ofwnet = {
- "net", /* netif_bname */
- ofwn_match, /* netif_match */
- ofwn_probe, /* netif_probe */
- ofwn_init, /* netif_init */
- ofwn_get, /* netif_get */
- ofwn_put, /* netif_put */
- ofwn_end, /* netif_end */
- ofwn_ifs, /* netif_ifs */
- nitems(ofwn_ifs) /* netif_nifs */
+ .netif_bname="net",
+ .netif_match=ofwn_match,
+ .netif_probe=ofwn_probe,
+ .netif_init=ofwn_init,
+ .netif_get=ofwn_get,
+ .netif_put=ofwn_put,
+ .netif_end=ofwn_end,
+ .netif_ifs=ofwn_ifs,
+ .netif_nifs=nitems(ofwn_ifs)
};
static ihandle_t netinstance;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 3, 4:04 AM (2 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16939524
Default Alt Text
D37442.id113650.diff (1018 B)
Attached To
Mode
D37442: ofw_net: Use c99 initializers
Attached
Detach File
Event Timeline
Log In to Comment