general: fix non-prototyped function deprecation errors

Newer compiler versions (i.e. Clang 15) failed to compile nautilus,
because the declaration did not match the function definition.
See: https://reviews.llvm.org/D122895

Fixes #2378
2 jobs for master in 5 minutes and 51 seconds (queued for 1 second)