From: Michael Stapelberg Date: Sun, 10 Feb 2013 16:21:46 +0000 (+0100) Subject: use stdbool instead of (int)1 and (int)0 directly X-Git-Tag: 2.7~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c273e54b867aeedcd1eadfbd6f4e4fad3690f74;p=i3%2Fi3status use stdbool instead of (int)1 and (int)0 directly --- diff --git a/src/print_time.c b/src/print_time.c index e007419..d19d08b 100644 --- a/src/print_time.c +++ b/src/print_time.c @@ -2,12 +2,13 @@ #include #include #include +#include #include #include #include "i3status.h" -static int local_timezone_init = 0; +static bool local_timezone_init = false; static const char *local_timezone = NULL; static const char *current_timezone = NULL; @@ -15,7 +16,7 @@ void set_timezone(const char *tz) { if (!local_timezone_init) { /* First call, initialize. */ local_timezone = getenv("TZ"); - local_timezone_init = 1; + local_timezone_init = true; } if (tz == NULL || tz[0] == '\0') { /* User wants localtime. */