Skip to content

Commit

Permalink
src/message_client: fix compiler warnings about casts between uint8_t…
Browse files Browse the repository at this point in the history
… * and char *
  • Loading branch information
fbrausse committed Jul 28, 2019
1 parent 960429c commit 9ba4bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main(void) {
return EXIT_FAILURE;
}
axc_bundle_destroy(bundle_bob);
axc_buf * msg_buf_p = axc_buf_create("hello", strlen("hello") + 1);
axc_buf * msg_buf_p = axc_buf_create((const uint8_t *)"hello", strlen("hello") + 1);
if (!msg_buf_p) {
fprintf(stderr, "failed to create 'hello' msg buffer\n");
axc_cleanup(ctx_b_p);
Expand Down Expand Up @@ -222,7 +222,7 @@ int main(void) {

printf("decrypted message: %s\n", axc_buf_get_data(plaintext_p));

char * upper = axc_buf_get_data(plaintext_p);
char * upper = (char *)axc_buf_get_data(plaintext_p);
for (size_t i = 0; i < strlen(upper); i++) {
upper[i] = toupper(upper[i]);
}
Expand Down

0 comments on commit 9ba4bb4

Please sign in to comment.