From 023dc6798e05373bf33d64221bbe6a7265734c34 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 9 May 2008 18:07:15 +0000 Subject: fix warnings about pointer signedness --- coreutils/tr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils/tr.c') diff --git a/coreutils/tr.c b/coreutils/tr.c index d0af63a36..0d3284900 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c @@ -208,8 +208,8 @@ int tr_main(int argc ATTRIBUTE_UNUSED, char **argv) if (*argv) { if (argv[0][0] == '\0') bb_error_msg_and_die("STRING2 cannot be empty"); - output_length = expand(*argv, output); - map(vector, tr_buf, input_length, output, output_length); + output_length = expand(*argv, (char *)output); + map(vector, (unsigned char *)tr_buf, input_length, output, output_length); } for (i = 0; i < input_length; i++) invec[(unsigned char)tr_buf[i]] = TRUE; -- cgit v1.2.3