From 3543f043611fb0c0db916dba4c77566319a59e81 Mon Sep 17 00:00:00 2001 From: speedie Date: Thu, 18 May 2023 20:01:22 +0200 Subject: [PATCH] print errors to, well.. stderr not stdout --- libs/conf/config.c | 2 +- libs/theme/theme.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/conf/config.c b/libs/conf/config.c index 15f37d7..ab5d1aa 100644 --- a/libs/conf/config.c +++ b/libs/conf/config.c @@ -53,7 +53,7 @@ void conf_init(void) { // attempt to read config file to cfg if (!config_read_file(&cfg, cfgfile)) { // invalid configuration, but let's try to read it anyway - fprintf(stdout, "spmenu: Invalid configuration.\n"); + fprintf(stderr, "spmenu: Invalid configuration.\n"); } // load options spmenu.window diff --git a/libs/theme/theme.c b/libs/theme/theme.c index f8e03c1..6c8742a 100644 --- a/libs/theme/theme.c +++ b/libs/theme/theme.c @@ -49,7 +49,7 @@ void theme_load(void) { // attempt to read theme if (!config_read_file(&cfg, theme)) { - fprintf(stdout, "spmenu: Invalid theme.\n"); // invalid configuration, but let's try to read it anyway + fprintf(stderr, "spmenu: Invalid theme.\n"); // invalid configuration, but let's try to read it anyway } // load options theme.window