From 43d153c00bb067276d3cda141ad62de27cb4971d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 26 Jan 2023 22:43:29 +0300 Subject: Cleanup & fix new album images not being rendered * Cleaned up some code and formatted with clang-format * Fix the result of what can only be explained as me having a brain-fart^1 leading me to write returns where they shouldn't be hence the image-walk loop returning early when new images were added to an album. * Also cleaned up and fixed a bug in roscha; more in roscha's own repo. 1: https://www.youtube.com/watch?v=UN7SBXJj2pc --- include/components.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/components.h') diff --git a/include/components.h b/include/components.h index 88023cb..293ff17 100644 --- a/include/components.h +++ b/include/components.h @@ -45,7 +45,7 @@ struct image { struct roscha_object *map; /* hashmap with values to be passed to the thumbs vector */ struct roscha_object *thumb; - /* + /* * Whether this image was modified since the last time the gallery was * generated. */ @@ -100,7 +100,7 @@ int image_cmp(const void *a, const void *b); void image_destroy(struct image *); struct album *album_new(struct album_config *, struct site *, - const char *src, const char *rsrc, const struct stat *); + const char *src, const char *rsrc, const struct stat *); int album_cmp(const void *a, const void *b); -- cgit v1.2.3