From 3e77ca5c225f3a573ff21eb8e15d8ba2528e7bad Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 2 Aug 2023 14:32:57 +0200 Subject: [PATCH] clang-format --- include/sqsh_archive.h | 9 +++++---- lib/chrome/directory.c | 2 +- lib/mapper/map_manager.c | 1 - 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/sqsh_archive.h b/include/sqsh_archive.h index d59c618ab..871ea209c 100644 --- a/include/sqsh_archive.h +++ b/include/sqsh_archive.h @@ -381,11 +381,12 @@ struct SqshConfig { /** * @brief represents the addressable size of the source in bytes. * - * Please note that this is not the size of the archive, but the size of the - * source. So that the maximal size of the archive is `source_size - archive_offset`. + * Please note that this is not the size of the archive, but the size of the + * source. So that the maximal size of the archive is `source_size - + * archive_offset`. * - * This field is only used when the source_mapper is unable to determine the size - * of the source itself. This is the case for the following mappers: + * This field is only used when the source_mapper is unable to determine the + * size of the source itself. This is the case for the following mappers: * * - `sqsh_mapper_impl_static` */ diff --git a/lib/chrome/directory.c b/lib/chrome/directory.c index b6f78be9c..5f6fae63b 100644 --- a/lib/chrome/directory.c +++ b/lib/chrome/directory.c @@ -116,7 +116,7 @@ sqsh_directory_list(struct SqshArchive *archive, const char *path, int *err) { dir_list_data = (char **)sqsh__buffer_unwrap(&dir_list); - for(sqsh_index_t i = 0; i < elements; i++) { + for (sqsh_index_t i = 0; i < elements; i++) { dir_list_data[i] += base_size + (uintptr_t)dir_list_data; } diff --git a/lib/mapper/map_manager.c b/lib/mapper/map_manager.c index a3002c7ca..bffedf5f4 100644 --- a/lib/mapper/map_manager.c +++ b/lib/mapper/map_manager.c @@ -118,7 +118,6 @@ sqsh__map_manager_init( rv = sqsh__lru_init( &manager->lru, lru_size, &sqsh__lru_rc_map, &manager->maps); - out: if (rv < 0) { sqsh__map_manager_cleanup(manager);