]> granicus.if.org Git - fortune-mod/commitdiff
Silence compile-time or run-time warnings.
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 11 Dec 2021 17:31:53 +0000 (19:31 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 11 Dec 2021 17:31:53 +0000 (19:31 +0200)
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

index 1d66dd2415bbd2d8a694e375bd06634c844c46c6..32a8ed9bff58e22b3ce2d208f8d2166fc429d51c 100644 (file)
@@ -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);
 }