aboutsummaryrefslogtreecommitdiffstats
path: root/lib/if2ip.c
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2018-01-08 20:43:13 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-01-08 20:43:13 +0000
commitfb9bb4b2ab398c43e78c91e514b108e0ed83520d (patch)
tree10f2cc17311582d8f1b00ecf3ab0c4af213b839d /lib/if2ip.c
parent10454ac0160379de136bacbd7919f97228e906e6 (diff)
parent484d473385b76e888a2f692b4b6ada6d594868fe (diff)
downloadandroid_external_curl-fb9bb4b2ab398c43e78c91e514b108e0ed83520d.tar.gz
android_external_curl-fb9bb4b2ab398c43e78c91e514b108e0ed83520d.tar.bz2
android_external_curl-fb9bb4b2ab398c43e78c91e514b108e0ed83520d.zip
Merge "Update from 7.55.1 to 7.57.0" am: 96660a18c5
am: 484d473385 Change-Id: I32e13d89b042b3e0f824bd2cc1f1da4b65140f0b
Diffstat (limited to 'lib/if2ip.c')
-rw-r--r--lib/if2ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/if2ip.c b/lib/if2ip.c
index a91b6d2..ce38ea1 100644
--- a/lib/if2ip.c
+++ b/lib/if2ip.c
@@ -103,7 +103,7 @@ bool Curl_if_is_interface_name(const char *interf)
struct ifaddrs *iface, *head;
if(getifaddrs(&head) >= 0) {
- for(iface=head; iface != NULL; iface=iface->ifa_next) {
+ for(iface = head; iface != NULL; iface = iface->ifa_next) {
if(strcasecompare(iface->ifa_name, interf)) {
result = TRUE;
break;
@@ -131,7 +131,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
#endif
if(getifaddrs(&head) >= 0) {
- for(iface = head; iface != NULL; iface=iface->ifa_next) {
+ for(iface = head; iface != NULL; iface = iface->ifa_next) {
if(iface->ifa_addr != NULL) {
if(iface->ifa_addr->sa_family == af) {
if(strcasecompare(iface->ifa_name, interf)) {
@@ -230,7 +230,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
return IF2IP_NOT_FOUND;
memset(&req, 0, sizeof(req));
- memcpy(req.ifr_name, interf, len+1);
+ memcpy(req.ifr_name, interf, len + 1);
req.ifr_addr.sa_family = AF_INET;
if(ioctl(dummy, SIOCGIFADDR, &req) < 0) {