From 436d18dfea8e01bca368ac65970b57201d485b97 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 28 Feb 2020 06:33:34 -0600 Subject: Some compilers get upset if ? : produces different types. --- toys/posix/patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') diff --git a/toys/posix/patch.c b/toys/posix/patch.c index 8adad833..d3d77792 100644 --- a/toys/posix/patch.c +++ b/toys/posix/patch.c @@ -126,7 +126,7 @@ static int apply_one_hunk(void) { struct double_list *plist, *buf = 0, *check; int matcheof, trail = 0, reverse = FLAG(R), backwarn = 0, allfuzz = 0, fuzz,i; - int (*lcmp)(char *aa, char *bb) = FLAG(l) ? loosecmp : (void *)strcmp; + int (*lcmp)(char *aa, char *bb) = FLAG(l) ? (void *)loosecmp : (void *)strcmp; // Match EOF if there aren't as many ending context lines as beginning dlist_terminate(TT.current_hunk); -- cgit v1.2.3