Commit efac4e8f authored by Niels Möller's avatar Niels Möller
Browse files

Fix signedness warning for rsa-encrypt-test.

parent abe959a3
2016-09-03 Niels Möller <nisse@lysator.liu.se>
* testsuite/rsa-encrypt-test.c (test_main): Fix pointer
signednesss warning.
2016-08-29 Niels Möller <nisse@lysator.liu.se> 2016-08-29 Niels Möller <nisse@lysator.liu.se>
* sexp-format.c (strlen_u8): New helper function. * sexp-format.c (strlen_u8): New helper function.
......
...@@ -11,8 +11,8 @@ test_main(void) ...@@ -11,8 +11,8 @@ test_main(void)
struct knuth_lfib_ctx lfib; struct knuth_lfib_ctx lfib;
/* FIXME: How is this spelled? */ /* FIXME: How is this spelled? */
const uint8_t *msg = "Squemish ossifrage"; const unsigned char msg[] = "Squemish ossifrage";
size_t msg_length; size_t msg_length = LLENGTH(msg);
uint8_t *decrypted; uint8_t *decrypted;
size_t decrypted_length; size_t decrypted_length;
...@@ -27,7 +27,6 @@ test_main(void) ...@@ -27,7 +27,6 @@ test_main(void)
knuth_lfib_init(&lfib, 17); knuth_lfib_init(&lfib, 17);
test_rsa_set_key_1(&pub, &key); test_rsa_set_key_1(&pub, &key);
msg_length = strlen(msg);
if (verbose) if (verbose)
fprintf(stderr, "msg: `%s', length = %d\n", msg, (int) msg_length); fprintf(stderr, "msg: `%s', length = %d\n", msg, (int) msg_length);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment