diff options
-rw-r--r-- | coreutils/md5_sha1_sum.c | 2 | ||||
-rw-r--r-- | coreutils/tr.c | 4 | ||||
-rw-r--r-- | miscutils/less.c | 2 | ||||
-rw-r--r-- | networking/arp.c | 2 | ||||
-rw-r--r-- | networking/sendmail.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 2e1c96459..c81619493 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
@@ -21,7 +21,7 @@ static unsigned char *hash_bin_to_hex(unsigned char *hash_value, | |||
21 | /* xzalloc zero-terminates */ | 21 | /* xzalloc zero-terminates */ |
22 | char *hex_value = xzalloc((hash_length * 2) + 1); | 22 | char *hex_value = xzalloc((hash_length * 2) + 1); |
23 | bin2hex(hex_value, (char*)hash_value, hash_length); | 23 | bin2hex(hex_value, (char*)hash_value, hash_length); |
24 | return hex_value; | 24 | return (unsigned char *)hex_value; |
25 | } | 25 | } |
26 | 26 | ||
27 | static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo) | 27 | static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo) |
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; |
diff --git a/miscutils/less.c b/miscutils/less.c index 37ec5d976..065bf6f38 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -731,7 +731,7 @@ static int less_getch(int pos) | |||
731 | again: | 731 | again: |
732 | less_gets_pos = pos; | 732 | less_gets_pos = pos; |
733 | memset(input, 0, sizeof(input)); | 733 | memset(input, 0, sizeof(input)); |
734 | getch_nowait(input, sizeof(input)); | 734 | getch_nowait((char *)input, sizeof(input)); |
735 | less_gets_pos = -1; | 735 | less_gets_pos = -1; |
736 | 736 | ||
737 | /* Detect escape sequences (i.e. arrow keys) and handle | 737 | /* Detect escape sequences (i.e. arrow keys) and handle |
diff --git a/networking/arp.c b/networking/arp.c index c9b9d1d0d..f42e09f7c 100644 --- a/networking/arp.c +++ b/networking/arp.c | |||
@@ -200,7 +200,7 @@ static void arp_getdevhw(char *ifname, struct sockaddr *sa, | |||
200 | } | 200 | } |
201 | bb_error_msg("device '%s' has HW address %s '%s'", | 201 | bb_error_msg("device '%s' has HW address %s '%s'", |
202 | ifname, xhw->name, | 202 | ifname, xhw->name, |
203 | xhw->print((char *) &ifr.ifr_hwaddr.sa_data)); | 203 | xhw->print((unsigned char *) &ifr.ifr_hwaddr.sa_data)); |
204 | } | 204 | } |
205 | } | 205 | } |
206 | 206 | ||
diff --git a/networking/sendmail.c b/networking/sendmail.c index 242bb0eaf..f37d97f73 100644 --- a/networking/sendmail.c +++ b/networking/sendmail.c | |||
@@ -533,7 +533,7 @@ int sendgetmail_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
533 | // so we reuse md5 space instead of xzalloc(16*2+1) | 533 | // so we reuse md5 space instead of xzalloc(16*2+1) |
534 | #define md5_hex ((uint8_t *)&md5) | 534 | #define md5_hex ((uint8_t *)&md5) |
535 | // uint8_t *md5_hex = (uint8_t *)&md5; | 535 | // uint8_t *md5_hex = (uint8_t *)&md5; |
536 | *bin2hex(md5_hex, s, 16) = '\0'; | 536 | *bin2hex((char *)md5_hex, s, 16) = '\0'; |
537 | // APOP | 537 | // APOP |
538 | s = xasprintf("%s %s", opt_user, md5_hex); | 538 | s = xasprintf("%s %s", opt_user, md5_hex); |
539 | #undef md5_hex | 539 | #undef md5_hex |