aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpjday <rpjday@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-26 21:54:57 +0000
committerrpjday <rpjday@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-26 21:54:57 +0000
commit452c197c486acda5c60e1f149c735b2a68bcbdb7 (patch)
tree68e75eceec428bdf9935dca5f06f0dc1a41a0709
parent119e057c58adaf22bd4889fc2b13729c30b48250 (diff)
downloadbusybox-w32-452c197c486acda5c60e1f149c735b2a68bcbdb7.tar.gz
busybox-w32-452c197c486acda5c60e1f149c735b2a68bcbdb7.tar.bz2
busybox-w32-452c197c486acda5c60e1f149c735b2a68bcbdb7.zip
Aesthetic fix to use newer structure initialization format.
git-svn-id: svn://busybox.net/trunk/busybox@15521 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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[] = {