Patch by Robert P. Day to make structs use c99 initializers.

This commit is contained in:
Rob Landley 2006-06-20 15:52:52 +00:00
parent 2a613d7360
commit 2818b292fb

View File

@ -126,13 +126,12 @@ static char *INET_sprint(struct sockaddr *sap, int numeric)
} }
static struct aftype inet_aftype = { static struct aftype inet_aftype = {
"inet", "DARPA Internet", AF_INET, sizeof(unsigned long), .name = "inet",
NULL /* UNUSED INET_print */ , INET_sprint, .title = "DARPA Internet",
NULL /* UNUSED INET_input */ , NULL /* UNUSED INET_reserror */ , .af = AF_INET,
NULL /*INET_rprint */ , NULL /*INET_rinput */ , .alen = sizeof(unsigned long),
NULL /* UNUSED INET_getnetmask */ , .sprint = INET_sprint,
-1, .fd = -1
NULL
}; };
#if HAVE_AFINET6 #if HAVE_AFINET6
@ -152,13 +151,12 @@ static char *INET6_sprint(struct sockaddr *sap, int numeric)
} }
static struct aftype inet6_aftype = { static struct aftype inet6_aftype = {
"inet6", "IPv6", AF_INET6, sizeof(struct in6_addr), .name = "inet6",
NULL /* UNUSED INET6_print */ , INET6_sprint, .title = "IPv6",
NULL /* UNUSED INET6_input */ , NULL /* UNUSED INET6_reserror */ , .af = AF_INET6,
NULL /*INET6_rprint */ , NULL /*INET6_rinput */ , .alen = sizeof(struct in6_addr),
NULL /* UNUSED INET6_getnetmask */ , .sprint = INET6_sprint,
-1, .fd = -1
NULL
}; };
#endif /* HAVE_AFINET6 */ #endif /* HAVE_AFINET6 */