Aesthetic fix to use newer structure initialization format.
This commit is contained in:
@@ -723,13 +723,16 @@ struct hwtype {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const struct hwtype unspec_hwtype = {
|
static const struct hwtype unspec_hwtype = {
|
||||||
"unspec", "UNSPEC", -1, 0,
|
.name = "unspec",
|
||||||
UNSPEC_print, NULL, NULL
|
.title = "UNSPEC",
|
||||||
|
.type = -1,
|
||||||
|
.print = UNSPEC_print
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct hwtype loop_hwtype = {
|
static const struct hwtype loop_hwtype = {
|
||||||
"loop", "Local Loopback", ARPHRD_LOOPBACK, 0,
|
.name = "loop",
|
||||||
NULL, NULL, NULL
|
.title = "Local Loopback",
|
||||||
|
.type = ARPHRD_LOOPBACK
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <net/if_arp.h>
|
#include <net/if_arp.h>
|
||||||
@@ -753,15 +756,19 @@ static char *pr_ether(unsigned char *ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct hwtype ether_hwtype = {
|
static const struct hwtype ether_hwtype = {
|
||||||
"ether", "Ethernet", ARPHRD_ETHER, ETH_ALEN,
|
.name = "ether",
|
||||||
pr_ether, NULL /* UNUSED in_ether */ , NULL
|
.title = "Ethernet",
|
||||||
|
.type = ARPHRD_ETHER,
|
||||||
|
.alen = ETH_ALEN,
|
||||||
|
.print = pr_ether
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <net/if_arp.h>
|
#include <net/if_arp.h>
|
||||||
|
|
||||||
static const struct hwtype ppp_hwtype = {
|
static const struct hwtype ppp_hwtype = {
|
||||||
"ppp", "Point-Point Protocol", ARPHRD_PPP, 0,
|
.name = "ppp",
|
||||||
NULL, NULL, NULL /* UNUSED do_ppp */ , 0
|
.title = "Point-to-Point Protocol",
|
||||||
|
.type = ARPHRD_PPP
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct hwtype * const hwtypes[] = {
|
static const struct hwtype * const hwtypes[] = {
|
||||||
|
Reference in New Issue
Block a user