diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-30 10:55:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-30 16:05:30 +0200 |
commit | 0e607542dca1247217997184224fc1a779778166 (patch) | |
tree | 104bc925f4d51abb088953cc35de96ee33e9e610 /lib/if2ip.c | |
parent | 529add48bc2a8e66bdbc1926e7708535dd5317a2 (diff) |
cleanup: insert newline after if() conditions
Our code style mandates we put the conditional block on a separate
line. These mistakes are now detected by the updated checksrc.
Diffstat (limited to 'lib/if2ip.c')
-rw-r--r-- | lib/if2ip.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/if2ip.c b/lib/if2ip.c index d003de678..b283f67f8 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -129,11 +129,11 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope, unsigned int ifscope = Curl_ipv6_scope(iface->ifa_addr); if(ifscope != remote_scope) { - /* We are interested only in interface addresses whose - scope matches the remote address we want to - connect to: global for global, link-local for - link-local, etc... */ - if(res == IF2IP_NOT_FOUND) res = IF2IP_AF_NOT_SUPPORTED; + /* We are interested only in interface addresses whose scope + matches the remote address we want to connect to: global + for global, link-local for link-local, etc... */ + if(res == IF2IP_NOT_FOUND) + res = IF2IP_AF_NOT_SUPPORTED; continue; } |