o rtnetlink_dev: use C99 struct init style

parent d14ddf0e
...@@ -170,16 +170,46 @@ static struct file_operations netlink_fops = { ...@@ -170,16 +170,46 @@ static struct file_operations netlink_fops = {
.release = netlink_release, .release = netlink_release,
}; };
static struct { char *name; int minor; } entries[] = { static struct {
{"route", 0}, char *name;
{"skip", 1}, int minor;
{"usersock", 2}, } entries[] = {
{"fwmonitor", 3}, {
{"tcpdiag", 4}, .name = "route",
{"arpd", 8}, .minor = 0,
{"route6", 11}, },
{"ip6_fw", 13}, {
{"dnrtmsg", 13}, .name = "skip",
.minor = 1,
},
{
.name = "usersock",
.minor = 2,
},
{
.name = "fwmonitor",
.minor = 3,
},
{
.name = "tcpdiag",
.minor = 4,
},
{
.name = "arpd",
.minor = 8,
},
{
.name = "route6",
.minor = 11,
},
{
.name = "ip6_fw",
.minor = 13,
},
{
.name = "dnrtmsg",
.minor = 13,
},
}; };
static void __init make_devfs_entries (const char *name, int minor) static void __init make_devfs_entries (const char *name, int minor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment