diff options
author | Rob Landley <rob@landley.net> | 2006-06-20 15:52:52 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-20 15:52:52 +0000 |
commit | 2818b292fb0638a763ee1e5e2cd1a7313afae7c0 (patch) | |
tree | a5ca3207f031f16297ae91550b77681aa807d8cc | |
parent | 2a613d73601b2dedb6cc4441bd4405a22379867c (diff) | |
download | busybox-w32-2818b292fb0638a763ee1e5e2cd1a7313afae7c0.tar.gz busybox-w32-2818b292fb0638a763ee1e5e2cd1a7313afae7c0.tar.bz2 busybox-w32-2818b292fb0638a763ee1e5e2cd1a7313afae7c0.zip |
Patch by Robert P. Day to make structs use c99 initializers.
-rw-r--r-- | networking/interface.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/networking/interface.c b/networking/interface.c index dc097fa59..964665c71 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -126,13 +126,12 @@ static char *INET_sprint(struct sockaddr *sap, int numeric) | |||
126 | } | 126 | } |
127 | 127 | ||
128 | static struct aftype inet_aftype = { | 128 | static struct aftype inet_aftype = { |
129 | "inet", "DARPA Internet", AF_INET, sizeof(unsigned long), | 129 | .name = "inet", |
130 | NULL /* UNUSED INET_print */ , INET_sprint, | 130 | .title = "DARPA Internet", |
131 | NULL /* UNUSED INET_input */ , NULL /* UNUSED INET_reserror */ , | 131 | .af = AF_INET, |
132 | NULL /*INET_rprint */ , NULL /*INET_rinput */ , | 132 | .alen = sizeof(unsigned long), |
133 | NULL /* UNUSED INET_getnetmask */ , | 133 | .sprint = INET_sprint, |
134 | -1, | 134 | .fd = -1 |
135 | NULL | ||
136 | }; | 135 | }; |
137 | 136 | ||
138 | #if HAVE_AFINET6 | 137 | #if HAVE_AFINET6 |
@@ -152,13 +151,12 @@ static char *INET6_sprint(struct sockaddr *sap, int numeric) | |||
152 | } | 151 | } |
153 | 152 | ||
154 | static struct aftype inet6_aftype = { | 153 | static struct aftype inet6_aftype = { |
155 | "inet6", "IPv6", AF_INET6, sizeof(struct in6_addr), | 154 | .name = "inet6", |
156 | NULL /* UNUSED INET6_print */ , INET6_sprint, | 155 | .title = "IPv6", |
157 | NULL /* UNUSED INET6_input */ , NULL /* UNUSED INET6_reserror */ , | 156 | .af = AF_INET6, |
158 | NULL /*INET6_rprint */ , NULL /*INET6_rinput */ , | 157 | .alen = sizeof(struct in6_addr), |
159 | NULL /* UNUSED INET6_getnetmask */ , | 158 | .sprint = INET6_sprint, |
160 | -1, | 159 | .fd = -1 |
161 | NULL | ||
162 | }; | 160 | }; |
163 | 161 | ||
164 | #endif /* HAVE_AFINET6 */ | 162 | #endif /* HAVE_AFINET6 */ |