aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-20 15:52:52 +0000
committerRob Landley <rob@landley.net>2006-06-20 15:52:52 +0000
commit2818b292fb0638a763ee1e5e2cd1a7313afae7c0 (patch)
treea5ca3207f031f16297ae91550b77681aa807d8cc /networking
parent2a613d73601b2dedb6cc4441bd4405a22379867c (diff)
downloadbusybox-2818b292fb0638a763ee1e5e2cd1a7313afae7c0.tar.gz
Patch by Robert P. Day to make structs use c99 initializers.
Diffstat (limited to 'networking')
-rw-r--r--networking/interface.c26
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)
}
static struct aftype inet_aftype = {
- "inet", "DARPA Internet", AF_INET, sizeof(unsigned long),
- NULL /* UNUSED INET_print */ , INET_sprint,
- NULL /* UNUSED INET_input */ , NULL /* UNUSED INET_reserror */ ,
- NULL /*INET_rprint */ , NULL /*INET_rinput */ ,
- NULL /* UNUSED INET_getnetmask */ ,
- -1,
- NULL
+ .name = "inet",
+ .title = "DARPA Internet",
+ .af = AF_INET,
+ .alen = sizeof(unsigned long),
+ .sprint = INET_sprint,
+ .fd = -1
};
#if HAVE_AFINET6
@@ -152,13 +151,12 @@ static char *INET6_sprint(struct sockaddr *sap, int numeric)
}
static struct aftype inet6_aftype = {
- "inet6", "IPv6", AF_INET6, sizeof(struct in6_addr),
- NULL /* UNUSED INET6_print */ , INET6_sprint,
- NULL /* UNUSED INET6_input */ , NULL /* UNUSED INET6_reserror */ ,
- NULL /*INET6_rprint */ , NULL /*INET6_rinput */ ,
- NULL /* UNUSED INET6_getnetmask */ ,
- -1,
- NULL
+ .name = "inet6",
+ .title = "IPv6",
+ .af = AF_INET6,
+ .alen = sizeof(struct in6_addr),
+ .sprint = INET6_sprint,
+ .fd = -1
};
#endif /* HAVE_AFINET6 */