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 --- src/revela.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/revela.c') diff --git a/src/revela.c b/src/revela.c index f41d271..aca19c5 100644 --- a/src/revela.c +++ b/src/revela.c @@ -13,9 +13,8 @@ #define VERSION "0.1.2" #endif -static const char *usage = - "Usage: %s [OPTIONS] -o \n" - "For more information consult `man 1 revela`\n"; +static const char *usage = "Usage: %s [OPTIONS] -o \n" + "For more information consult `man 1 revela`\n"; static struct site site = {0}; static enum log_level loglvl = LOG_DETAIL; @@ -47,7 +46,7 @@ parse_arguments(int argc, char *argv[]) printf(usage, cmd); exit(0); case 'V': - printf("revela "VERSION"\n"); + printf("revela " VERSION "\n"); exit(0); default: bad_arguments(cmd); @@ -69,8 +68,9 @@ main(int argc, char *argv[]) log_set_verbosity(loglvl); #endif - int ret = site_init(&site) && site_load(&site) && site_build(&site) - ? EXIT_SUCCESS : EXIT_FAILURE; + int ret = site_init(&site) && site_load(&site) && site_build(&site) + ? EXIT_SUCCESS + : EXIT_FAILURE; if (site.dry_run) { log_printl(LOG_INFO, "==== [DRY RUN] ===="); -- cgit v1.2.3