lower amount of shadow and const warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15587 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -266,6 +266,10 @@ start_server(krb5_context context)
|
||||
sizeof(one)) < 0)
|
||||
krb5_warn(context, errno, "setsockopt");
|
||||
#endif
|
||||
{
|
||||
int on = 1;
|
||||
setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on));
|
||||
}
|
||||
if (bind (s, ap->ai_addr, ap->ai_addrlen) < 0) {
|
||||
krb5_warn(context, errno, "bind");
|
||||
close(s);
|
||||
|
Reference in New Issue
Block a user