summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/txt/txt.c2
-rw-r--r--src/modules/compose/compose.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/txt/txt.c b/src/libs/txt/txt.c
index e1923b9..e5eeec6 100644
--- a/src/libs/txt/txt.c
+++ b/src/libs/txt/txt.c
@@ -24,7 +24,7 @@ static void measure_str(const char *str, int *res_width, int *res_height)
assert(res_width);
assert(res_height);
- while (c = *str) {
+ while ((c = *str)) {
switch (c) {
case ' '...'~':
col++;
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c
index bdd4b70..eb8cd48 100644
--- a/src/modules/compose/compose.c
+++ b/src/modules/compose/compose.c
@@ -331,7 +331,7 @@ static int compose_setup(const til_settings_t *settings, til_setting_t **res_set
n++;
setup = new;
- } while (layer = strtok(NULL, ":"));
+ } while ((layer = strtok(NULL, ":")));
if (strcasecmp(texture, "none")) {
const til_module_t *texture_module;
© All Rights Reserved