From 2c39de16a8924c2d90b4fce3506ebcaabaa7ed25 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Wed, 29 Apr 2020 13:50:58 +0300 Subject: [PATCH] Silence compile-time or run-time warnings. See: * https://duckduckgo.com/?q=warnings+programming&atb=v140-1&ia=web They are a distraction at best and may indicate other issues. --- fortune-mod/fortune/fortune.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortune-mod/fortune/fortune.c b/fortune-mod/fortune/fortune.c index dcc668a..ab7baeb 100644 --- a/fortune-mod/fortune/fortune.c +++ b/fortune-mod/fortune/fortune.c @@ -771,7 +771,7 @@ static int add_file(int percent, const char *file, const char *dir, static int names_compare(const void *a, const void *b) { - return strcmp(*(const char **)a, *(const char **)b); + return strcmp(*(const char *const *)a, *(const char *const *)b); } /* * add_dir: -- 2.50.1