From 23e66635cca4359f02b05f0f97494ca001f4fc0f Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 6 Jul 2025 19:00:27 +0200 Subject: [PATCH] inih is confusing (0 is error, 1 is success, why? who the fuck knows) --- src/rds95.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/rds95.c b/src/rds95.c index 44f7a88..0c7d7a8 100644 --- a/src/rds95.c +++ b/src/rds95.c @@ -42,14 +42,10 @@ static inline void show_help(char *name) { "\n" "Usage: %s [options]\n" "\n" - "\t-C,--ctl\tFIFO control pipe\n" - "\t-d,--device\tPulseAudio device to use (default: %s)\n" - "\t-s,--streams\tNumber of RDS streams (1-%d, default: %d)\n" + "\t-c,--config\tSet the config path [default: %s]\n" "\n", name, - RDS_DEVICE, - MAX_STREAMS, - DEFAULT_STREAMS + DEFAULT_CONFIG_PATH, ); } @@ -74,9 +70,9 @@ static int config_handler(void* user, const char* section, const char* name, con config->num_streams = atoi(value); if(config->num_streams > MAX_STREAMS || config->num_streams == 0) return 1; } else { - return 1; + return 0; } - return 0; + return 1; } int main(int argc, char **argv) {