Commit 5837dc45 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed build for Android using NDK 21

parent 2ee9d225
......@@ -4986,7 +4986,7 @@ int dns_resconf_loadandroid(struct dns_resolv_conf *resconf) {
char prop_name[PROP_NAME_MAX];
unsigned int sa_count = 0;
int error = 0;
int i;
unsigned int i;
for (i = 1; !error && (i <= lengthof(resconf->nameserver)); i++) {
snprintf(prop_name, sizeof(prop_name), "net.dns%d", i);
......@@ -7723,7 +7723,8 @@ exec:
dgoto(R->sp, DNS_R_FOREACH_NS);
case DNS_R_FOREACH_A: {
struct sockaddr_storage saddr={0};
struct sockaddr_storage saddr;
memset(&saddr, 0, sizeof(saddr));
socklen_t saddr_len = sizeof(saddr);
/*
......
......@@ -72,7 +72,8 @@ static int udp_channel_recv(belle_sip_channel_t *obj, void *buf, size_t buflen){
int udp_channel_connect(belle_sip_channel_t *obj, const struct addrinfo *ai){
belle_sip_udp_channel_t *chan=(belle_sip_udp_channel_t *)obj;
struct sockaddr_storage laddr={0};
struct sockaddr_storage laddr;
memset(&laddr, 0, sizeof(laddr));
socklen_t lslen=sizeof(laddr);
if (obj->local_ip==NULL){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment