summaryrefslogtreecommitdiff
path: root/networking/interface.c
diff options
context:
space:
mode:
author"Robert P. J. Day" <rpjday@mindspring.com>2006-06-26 21:54:57 +0000
committer"Robert P. J. Day" <rpjday@mindspring.com>2006-06-26 21:54:57 +0000
commit4137dd783b66d609ed033233bc2efad446c975c2 (patch)
tree68e75eceec428bdf9935dca5f06f0dc1a41a0709 /networking/interface.c
parentcd68a2e1a891843d8b437a323f1155a3b42d5a72 (diff)
downloadbusybox-w32-4137dd783b66d609ed033233bc2efad446c975c2.tar.gz
busybox-w32-4137dd783b66d609ed033233bc2efad446c975c2.tar.bz2
busybox-w32-4137dd783b66d609ed033233bc2efad446c975c2.zip
Aesthetic fix to use newer structure initialization format.
Diffstat (limited to 'networking/interface.c')
-rw-r--r--networking/interface.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/networking/interface.c b/networking/interface.c
index f5937ef3f..4ad542d14 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -723,13 +723,16 @@ struct hwtype {
723}; 723};
724 724
725static const struct hwtype unspec_hwtype = { 725static const struct hwtype unspec_hwtype = {
726 "unspec", "UNSPEC", -1, 0, 726 .name = "unspec",
727 UNSPEC_print, NULL, NULL 727 .title = "UNSPEC",
728 .type = -1,
729 .print = UNSPEC_print
728}; 730};
729 731
730static const struct hwtype loop_hwtype = { 732static const struct hwtype loop_hwtype = {
731 "loop", "Local Loopback", ARPHRD_LOOPBACK, 0, 733 .name = "loop",
732 NULL, NULL, NULL 734 .title = "Local Loopback",
735 .type = ARPHRD_LOOPBACK
733}; 736};
734 737
735#include <net/if_arp.h> 738#include <net/if_arp.h>
@@ -753,15 +756,19 @@ static char *pr_ether(unsigned char *ptr)
753} 756}
754 757
755static const struct hwtype ether_hwtype = { 758static const struct hwtype ether_hwtype = {
756 "ether", "Ethernet", ARPHRD_ETHER, ETH_ALEN, 759 .name = "ether",
757 pr_ether, NULL /* UNUSED in_ether */ , NULL 760 .title = "Ethernet",
761 .type = ARPHRD_ETHER,
762 .alen = ETH_ALEN,
763 .print = pr_ether
758}; 764};
759 765
760#include <net/if_arp.h> 766#include <net/if_arp.h>
761 767
762static const struct hwtype ppp_hwtype = { 768static const struct hwtype ppp_hwtype = {
763 "ppp", "Point-Point Protocol", ARPHRD_PPP, 0, 769 .name = "ppp",
764 NULL, NULL, NULL /* UNUSED do_ppp */ , 0 770 .title = "Point-to-Point Protocol",
771 .type = ARPHRD_PPP
765}; 772};
766 773
767static const struct hwtype * const hwtypes[] = { 774static const struct hwtype * const hwtypes[] = {