aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-13 21:48:22 -0600
committerRob Landley <rob@landley.net>2012-02-13 21:48:22 -0600
commitb07a3d3f1f5ff041e755110a451bb6c75a8a7231 (patch)
tree739c551f0ef447bc00f6bd8241f4e1958be93f36 /toys
parentda5aa3a09667a84779f3af077e725daa747737fd (diff)
downloadtoybox-b07a3d3f1f5ff041e755110a451bb6c75a8a7231.tar.gz
Tweak from Frank Bergmann: some broken optimizers complain about "type-punned pointers", so typecast to void * instead to shut it up. (Up there with the "may be used uninitialized" gripes.)
Diffstat (limited to 'toys')
-rw-r--r--toys/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/sort.c b/toys/sort.c
index 94729ee1..fabff694 100644
--- a/toys/sort.c
+++ b/toys/sort.c
@@ -308,7 +308,7 @@ static void sort_read(int fd, char *name)
if (CFG_SORT_BIG && (toys.optflags&FLAG_c)) {
int j = (toys.optflags&FLAG_u) ? -1 : 0;
- if (TT.lines && compare_keys((char **)&TT.lines, &line)>j)
+ if (TT.lines && compare_keys((void *)&TT.lines, &line)>j)
error_exit("%s: Check line %d\n", name, TT.linecount);
free(TT.lines);
TT.lines = (char **)line;