correct types of pointers passed to `gmtime(3)` There are pointers to `long` being passed to `gmtime(3)`. With recent versions of gcc, on architectures where `long` and `time_t` are not the same size, this leads to "incompatible pointer type" errors.
remove pre-ANSI function declarations Pre-ANSI function declarators which do not declare their parameters have been removed in C23 and the syntax reused for declaring functions with no parameters (like C++). GCC 15 defaults to C23, so these declarators will cause an FTBFS. . Update the function definitions to have prototypes where these are missing, and replace the obsolete declarations with modern equivalents.