From: Shlomi Fish Date: Sat, 11 Dec 2021 17:31:53 +0000 (+0200) Subject: Silence compile-time or run-time warnings. X-Git-Tag: fortune-mod-3.8.0~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38befa4e2b28b0ef8d5384493321c0fc12018c97;p=fortune-mod 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. --- diff --git a/fortune-mod/fortune/fortune.c b/fortune-mod/fortune/fortune.c index 1d66dd2..32a8ed9 100644 --- a/fortune-mod/fortune/fortune.c +++ b/fortune-mod/fortune/fortune.c @@ -538,7 +538,7 @@ static bool path_is_absolute(const char *const path) return false; } -static int open4read(const char const *path) +static int open4read(const char *const path) { return open(path, O_RDONLY | O_BINARY); }