From: Shlomi Fish Date: Sat, 8 Jun 2019 18:42:39 +0000 (+0300) Subject: win32 porting X-Git-Tag: fortune-mod-2.10.0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4748da7c6e54c66946e4aa1b092451080e77e674;p=fortune-mod win32 porting --- diff --git a/fortune-mod/fortune/fortune.c b/fortune-mod/fortune/fortune.c index 6f50cf4..42577ec 100644 --- a/fortune-mod/fortune/fortune.c +++ b/fortune-mod/fortune/fortune.c @@ -1707,7 +1707,7 @@ static int fortlen(void) return nchar; } -static int max(register int i, register int j) +static int mymax(register int i, register int j) { return (i >= j ? i : j); } @@ -1799,7 +1799,7 @@ int main(int ac, char *av[]) if (Wait) { fortlen(); - sleep((unsigned int) max(Fort_len / CPERS, MINW)); + sleep((unsigned int) mymax(Fort_len / CPERS, MINW)); } } cleanup: