diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-09 18:07:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-09 18:07:15 +0000 |
commit | 023dc6798e05373bf33d64221bbe6a7265734c34 (patch) | |
tree | c111bcbb60f73790b29f7dd4f030f8c1e87b29a8 /coreutils/tr.c | |
parent | 98636eb08c5ecc216e18970e11f7021206ac9b04 (diff) | |
download | busybox-w32-023dc6798e05373bf33d64221bbe6a7265734c34.tar.gz busybox-w32-023dc6798e05373bf33d64221bbe6a7265734c34.tar.bz2 busybox-w32-023dc6798e05373bf33d64221bbe6a7265734c34.zip |
fix warnings about pointer signedness
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r-- | coreutils/tr.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
208 | if (*argv) { | 208 | if (*argv) { |
209 | if (argv[0][0] == '\0') | 209 | if (argv[0][0] == '\0') |
210 | bb_error_msg_and_die("STRING2 cannot be empty"); | 210 | bb_error_msg_and_die("STRING2 cannot be empty"); |
211 | output_length = expand(*argv, output); | 211 | output_length = expand(*argv, (char *)output); |
212 | map(vector, tr_buf, input_length, output, output_length); | 212 | map(vector, (unsigned char *)tr_buf, input_length, output, output_length); |
213 | } | 213 | } |
214 | for (i = 0; i < input_length; i++) | 214 | for (i = 0; i < input_length; i++) |
215 | invec[(unsigned char)tr_buf[i]] = TRUE; | 215 | invec[(unsigned char)tr_buf[i]] = TRUE; |