From bf538679f077124458595e2c4f5595313caf9de3 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 4 Apr 2024 11:29:22 -0700 Subject: [PATCH] Reformat files with make format Signed-off-by: William Douglas --- src/swupd_build_variant.h | 2 +- src/swupd_lib/curl_async.c | 10 +++++----- src/swupd_lib/filedesc.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/swupd_build_variant.h b/src/swupd_build_variant.h index b71996833..19d9f02e4 100644 --- a/src/swupd_build_variant.h +++ b/src/swupd_build_variant.h @@ -26,7 +26,7 @@ #ifdef SWUPD_TAR_SELINUX #define TAR_XATTR_ARGS "--xattrs --xattrs-include='*' --selinux" -#else /* SWUPD_TAR_SELINUX */ +#else /* SWUPD_TAR_SELINUX */ #define TAR_XATTR_ARGS "--xattrs --xattrs-include='*'" #endif /* SWUPD_TAR_SELINUX */ diff --git a/src/swupd_lib/curl_async.c b/src/swupd_lib/curl_async.c index 57f60c1e4..92d64e311 100644 --- a/src/swupd_lib/curl_async.c +++ b/src/swupd_lib/curl_async.c @@ -79,10 +79,10 @@ #define HASH_TO_KEY(hash) (HASH_VALUE(hash[0]) << 4 | HASH_VALUE(hash[1])) struct swupd_curl_parallel_handle { - int retry_delay; /* Retry delay */ - size_t mcurl_size, max_xfer; /* hysteresis parameters */ + int retry_delay; /* Retry delay */ + size_t mcurl_size, max_xfer; /* hysteresis parameters */ bool resume_failed; - int last_retry; /* keep the largest retry number so far */ + int last_retry; /* keep the largest retry number so far */ CURLM *mcurl; /* Curl handle */ struct list *failed; /* List of failed downloads */ @@ -108,8 +108,8 @@ struct multi_curl_file { const char *hash; /* Unique identifier of this file. */ swupd_curl_success_cb callback; /* Holds original success callback to be wrapped */ - void *data; /* user's data */ - bool cb_retval; /* return value from callback */ + void *data; /* user's data */ + bool cb_retval; /* return value from callback */ struct file_progress *progress; }; diff --git a/src/swupd_lib/filedesc.c b/src/swupd_lib/filedesc.c index 0649b2ef3..b74b57a06 100644 --- a/src/swupd_lib/filedesc.c +++ b/src/swupd_lib/filedesc.c @@ -98,7 +98,7 @@ static void dump_file_descriptor_leaks_int(int n, void *a) char *filename; char buffer[PATH_MAX + 1]; ssize_t size; - a = a; /* Silence warning */ + a = a; /* Silence warning */ if (FD_ISSET(n, &open_fds)) { return; /* Was already open */ }