diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-23 21:51:21 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-23 21:51:21 +0100 |
commit | 96904ed9b2688f2712e3a2a78e3c40bcfd400742 (patch) | |
tree | 3bbc91cac2a45a035777d28f3c06a68f3b7148c8 /FICS | |
parent | 38a438285ec98c3215fcdd63ef2c35fc2a6fe351 (diff) |
Changed the return type of untenths()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/utils.c | 5 | ||||
-rw-r--r-- | FICS/utils.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index b7072c6..337a838 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -762,7 +762,10 @@ tenth_secs(void) * seconds, because vek didn't read utils.c when he programmed new * ratings. 1 sec since 1970 fits into a 32 bit int OK. */ -PUBLIC int +/* + * 2024-11-23 maxxe: changed the return type to 'time_t' + */ +PUBLIC time_t untenths(unsigned int tenths) { return (tenths / 10 + 331939277 + 0xffffffff / 10 + 1); diff --git a/FICS/utils.h b/FICS/utils.h index 4b51bbe..b5f77c6 100644 --- a/FICS/utils.h +++ b/FICS/utils.h @@ -104,7 +104,7 @@ extern int safechar(int); extern int safestring(char *); extern int search_directory(char *, char *, char **, int); extern int truncate_file(char *, int); -extern int untenths(unsigned int); +extern time_t untenths(unsigned int); extern unsigned int tenth_secs(void); //extern void pprintf_dohightlight(int); //extern void sprintf_dohightlight(int, char *); |