[mojosetup] libfetch: Fix a misleading indentation warning in _ftp_transfer().
Francois Gouget
fgouget at codeweavers.com
Mon Aug 10 13:18:48 EDT 2020
gcc -Wmisleading-indentation rightly complains that one of the ifs
looks like it is guarded by the other (at least with 8-space tabs).
The surrounding code uses tabs for indentation so match it to avoid
further indentation warnings.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
libfetch/ftp.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/libfetch/ftp.c b/libfetch/ftp.c
index 54c027c..909cda0 100644
--- a/libfetch/ftp.c
+++ b/libfetch/ftp.c
@@ -905,13 +905,13 @@ _ftp_transfer(conn_t *conn, const char *oper, const char *file,
_fetch_bind(sd, sa.ss_family, bindaddr) != 0)
goto sysouch;
#if __MOJOSETUP__
- {
- int socklen = sizeof (struct sockaddr_in);
- if (sa.ss_family == AF_INET6)
- socklen = sizeof (struct sockaddr_in6);
- if (connect(sd, (struct sockaddr *)&sa, socklen) == -1)
- goto sysouch;
- }
+ {
+ int socklen = sizeof (struct sockaddr_in);
+ if (sa.ss_family == AF_INET6)
+ socklen = sizeof (struct sockaddr_in6);
+ if (connect(sd, (struct sockaddr *)&sa, socklen) == -1)
+ goto sysouch;
+ }
#else
if (connect(sd, (struct sockaddr *)&sa, sa.ss_len) == -1)
goto sysouch;
--
2.20.1
More information about the mojosetup
mailing list