Fixup compile using -std=c90

This commit is contained in:
Robert de Bath 2017-06-18 10:16:45 +01:00
parent 2a7bafdd7f
commit 9fcbe8c7ea
2 changed files with 4 additions and 4 deletions

View File

@ -173,7 +173,7 @@ int bind_peer(int fd, int fd_from)
res = getpeername(fd_from, from.ai_addr, &from.ai_addrlen);
CHECK_RES_RETURN(res, "getpeername");
// if the destination is the same machine, there's no need to do bind
/* if the destination is the same machine, there's no need to do bind */
struct ifaddrs *ifaddrs_p = NULL, *ifa;
getifaddrs(&ifaddrs_p);
@ -201,7 +201,7 @@ int bind_peer(int fd, int fd_from)
match = 1;
}
}
if (match) // the destination is the same as the source, should not create a transparent bind
if (match) /* the destination is the same as the source, should not create a transparent bind */
return 0;
}

4
tls.c
View File

@ -193,7 +193,7 @@ parse_extensions(const struct TLSProtocol *tls_data, const char *data, size_t da
last_matched = 1;
}
} else {
// both can't match
/* both can't match */
return -2;
}
} else if (extension_type == 0x10) { /* ALPN */
@ -207,7 +207,7 @@ parse_extensions(const struct TLSProtocol *tls_data, const char *data, size_t da
last_matched = 1;
}
} else {
// both can't match
/* both can't match */
return -2;
}
}