Skip to content

Commit

Permalink
Reformat files with make format
Browse files Browse the repository at this point in the history
Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Apr 4, 2024
1 parent ae19d9d commit bf53867
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/swupd_build_variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
10 changes: 5 additions & 5 deletions src/swupd_lib/curl_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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;
};

Expand Down
2 changes: 1 addition & 1 deletion src/swupd_lib/filedesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down

0 comments on commit bf53867

Please sign in to comment.