diff options
author | Arne Schwabe <arne@rfc2549.org> | 2016-10-18 15:56:22 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2016-10-18 15:56:22 +0200 |
commit | 64e8dfac26a2e7da81e0ac30b1321c255b2f41b5 (patch) | |
tree | 9c01c4b31b372a084b56da8b47f853911a2d9e2f /main/jni/scan_ifs.c | |
parent | 20f6958942e6c1511230eb04a5de1e21e67233c1 (diff) |
Fix clang compiler warnings
Diffstat (limited to 'main/jni/scan_ifs.c')
-rw-r--r-- | main/jni/scan_ifs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/jni/scan_ifs.c b/main/jni/scan_ifs.c index e0024c54..a26e2b36 100644 --- a/main/jni/scan_ifs.c +++ b/main/jni/scan_ifs.c @@ -61,8 +61,8 @@ jobjectArray Java_de_blinkt_openvpn_core_NativeUtils_getIfconfig(JNIEnv* env) /* get interface addr, prefilled by SIOGIFCONF */ int err; - if (err=getnameinfo(&ifr->ifr_addr, sizeof(struct sockaddr_in), buf, NI_MAXHOST, NULL, 0, - NI_NUMERICHOST) !=0) { + if ((err=getnameinfo(&ifr->ifr_addr, sizeof(struct sockaddr_in), buf, NI_MAXHOST, NULL, 0, + NI_NUMERICHOST)) !=0) { __android_log_print(ANDROID_LOG_DEBUG, "openvpn", "getnameinfo failed for %s: %s", ifr->ifr_name, gai_strerror(err)); continue; } @@ -90,8 +90,8 @@ jobjectArray Java_de_blinkt_openvpn_core_NativeUtils_getIfconfig(JNIEnv* env) continue; } - if (err=getnameinfo(&ifreq.ifr_netmask, sizeof(struct sockaddr_in), buf, NI_MAXHOST, NULL, 0, - NI_NUMERICHOST) !=0) { + if ((err=getnameinfo(&ifreq.ifr_netmask, sizeof(struct sockaddr_in), buf, NI_MAXHOST, NULL, 0, + NI_NUMERICHOST)) !=0) { __android_log_print(ANDROID_LOG_DEBUG, "openvpn", "getnameinfo failed for %s: %s", ifr->ifr_name, gai_strerror(err)); continue; } |