summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-25 11:17:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-25 15:59:39 +0100
commit7e239f7d1d777b1283e7fc8b130d1343f0fb8c71 (patch)
tree17b97ccb6d21a8aa918a8eae9e44307f378f232c /lib/ftp.c
parent66637b4d8fbc52aa1b57845cf45c7ccc7a95880f (diff)
downloadcurl-7e239f7d1d777b1283e7fc8b130d1343f0fb8c71.tar.gz
urldata: convert bools to bitfields and move to end
This allows the compiler to pack and align the structs better in memory. For a rather feature-complete build on x86_64 Linux, gcc 8.1.2 makes the Curl_easy struct 4.9% smaller. From 6312 bytes to 6000. Removed an unused struct field. No functionality changes.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c5f954000..3086180b8 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, 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
@@ -4395,7 +4395,6 @@ static CURLcode ftp_setup_connection(struct connectdata *conn)
return CURLE_OUT_OF_MEMORY;
ftp->path = &data->state.up.path[1]; /* don't include the initial slash */
- data->state.slash_removed = TRUE; /* we've skipped the slash */
/* FTP URLs support an extension like ";type=<typecode>" that
* we'll try to get now! */