diff options
author | Rob Landley <rob@landley.net> | 2020-02-28 06:33:34 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-02-28 06:33:34 -0600 |
commit | 436d18dfea8e01bca368ac65970b57201d485b97 (patch) | |
tree | f93f4af2f9e7318030a3737ec062be85397e7982 /toys | |
parent | d9522e3ffa9f438eee867eb816baaaaf80bdb9a9 (diff) | |
download | toybox-436d18dfea8e01bca368ac65970b57201d485b97.tar.gz |
Some compilers get upset if ? : produces different types.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |