diff options
author | Simon Josefsson <simon@josefsson.org> | 2010-10-14 22:28:25 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2010-10-14 22:28:25 +0200 |
commit | 0e765c6a84d488936a07f8f2968d68d312b57e56 (patch) | |
tree | 11b2d4dc55403520f2e864da1dde9147ff52ee08 | |
parent | e8decd82ed4be106b5ba9ca250b8b54e1aec522b (diff) | |
download | gnutls-0e765c6a84d488936a07f8f2968d68d312b57e56.tar.gz |
Fix compiler warnings.
-rw-r--r-- | tests/openpgp-auth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/openpgp-auth.c b/tests/openpgp-auth.c index 05630c1614..7230a9aa39 100644 --- a/tests/openpgp-auth.c +++ b/tests/openpgp-auth.c @@ -169,7 +169,8 @@ doit () sent = gnutls_record_send (session, message, sizeof (message)); if (sent != sizeof (message)) - fail ("client sent %li vs. %li\n", sent, sizeof (message)); + fail ("client sent %li vs. %li\n", + (long) sent, (long) sizeof (message)); err = gnutls_bye (session, GNUTLS_SHUT_RDWR); if (err != 0) @@ -262,7 +263,8 @@ doit () received = gnutls_record_recv (session, greetings, sizeof (greetings)); if (received != sizeof (message) || memcmp (greetings, message, sizeof (message))) - fail ("server received %li vs. %li\n", received, sizeof (message)); + fail ("server received %li vs. %li\n", + (long) received, (long) sizeof (message)); err = gnutls_bye (session, GNUTLS_SHUT_RDWR); if (err != 0) |