From 0a5827571f97feded67d6abc837c332224917f75 Mon Sep 17 00:00:00 2001 From: Erik Olsson Date: Sat, 16 Jan 2021 22:17:51 +0100 Subject: lib: save a bit of space with some structure packing - Reorder some internal struct members so that less padding is used. This is an attempt at saving a bit of space by packing some structs (using pahole to find the holes) where it might make sense to do so without losing readability. I.e., I tried to avoid separating fields that seem grouped together (like the cwd... fields in struct ftp_conn for instance). Also abstained from touching fields behind conditional macros as that quickly can get complicated. Closes https://github.com/curl/curl/pull/6483 --- lib/asyn-thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/asyn-thread.c') diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 08c7c3bb1..9caa1be09 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -160,10 +160,9 @@ static bool init_resolve_thread(struct connectdata *conn, struct thread_sync_data { curl_mutex_t *mtx; int done; - + int port; char *hostname; /* hostname to resolve, Curl_async.hostname duplicate */ - int port; #ifdef USE_SOCKETPAIR struct connectdata *conn; curl_socket_t sock_pair[2]; /* socket pair */ -- cgit v1.2.1