From 4c3cd7fde636946bb806d9b2d025c59418fa4e85 Mon Sep 17 00:00:00 2001
From: Mattias Andrée <m@maandree.se>
Date: Thu, 6 Mar 2025 16:57:49 +0100
Subject: style and some minor fixes
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Mattias Andrée <m@maandree.se>
---
 src/redshift.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/redshift.c')

diff --git a/src/redshift.c b/src/redshift.c
index d150f06..31a8fbd 100644
--- a/src/redshift.c
+++ b/src/redshift.c
@@ -497,8 +497,7 @@ run_continual_mode(const struct location_provider *provider,
 	   the values did not change. */
 	enum period prev_period = PERIOD_NONE;
 
-	if (signals_install_handlers())
-		return -1;
+	signals_install_handlers();
 
 	/* Previous target color setting and current actual color setting.
 	   Actual color setting takes into account the current color fade. */
@@ -876,7 +875,7 @@ main(int argc, char *argv[])
 	if (options.mode != PROGRAM_MODE_RESET &&
 	    options.mode != PROGRAM_MODE_MANUAL) {
 		if (options.verbose) {
-			printf(_("Temperatures: %dK at day, %dK at night\n"),
+			printf(_("Temperatures: %iK at day, %iK at night\n"),
 			       options.scheme.day.temperature,
 			       options.scheme.night.temperature);
 		}
@@ -1134,7 +1133,8 @@ main(int argc, char *argv[])
 			options.method, method_state,
 			options.use_fade, options.preserve_gamma,
 			options.verbose);
-		if (r < 0) exit(EXIT_FAILURE);
+		if (r < 0)
+			exit(EXIT_FAILURE);
 	}
 	break;
 	}
-- 
cgit v1.2.3-70-g09d2