summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2015-10-30 15:58:40 +0000
committermiod <>2015-10-30 15:58:40 +0000
commit898da8b9bc620558fdd6dddc04fe32ba859b3b8e (patch)
tree850a27ccc2996b59e1d918cfe030332dddb2e4da
parente08e24c8fb2e0ede0c5209a9cb1733c7838ad385 (diff)
downloadopenbsd-898da8b9bc620558fdd6dddc04fe32ba859b3b8e.tar.gz
openbsd-898da8b9bc620558fdd6dddc04fe32ba859b3b8e.tar.bz2
openbsd-898da8b9bc620558fdd6dddc04fe32ba859b3b8e.zip
print unsigned ints with %u, not %d. Reported by Pascal Cuoq.
-rw-r--r--src/regress/lib/libcrypto/des/destest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/des/destest.c b/src/regress/lib/libcrypto/des/destest.c
index 87b8556989..d2737438f2 100644
--- a/src/regress/lib/libcrypto/des/destest.c
+++ b/src/regress/lib/libcrypto/des/destest.c
@@ -734,7 +734,7 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
734 printf("input word alignment test"); 734 printf("input word alignment test");
735 for (i=0; i<4; i++) 735 for (i=0; i<4; i++)
736 { 736 {
737 printf(" %d",i); 737 printf(" %u",i);
738 DES_ncbc_encrypt(&(cbc_out[i]),cbc_in, 738 DES_ncbc_encrypt(&(cbc_out[i]),cbc_in,
739 strlen((char *)cbc_data)+1,&ks, 739 strlen((char *)cbc_data)+1,&ks,
740 &cbc_iv,DES_ENCRYPT); 740 &cbc_iv,DES_ENCRYPT);
@@ -742,7 +742,7 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
742 printf("\noutput word alignment test"); 742 printf("\noutput word alignment test");
743 for (i=0; i<4; i++) 743 for (i=0; i<4; i++)
744 { 744 {
745 printf(" %d",i); 745 printf(" %u",i);
746 DES_ncbc_encrypt(cbc_out,&(cbc_in[i]), 746 DES_ncbc_encrypt(cbc_out,&(cbc_in[i]),
747 strlen((char *)cbc_data)+1,&ks, 747 strlen((char *)cbc_data)+1,&ks,
748 &cbc_iv,DES_ENCRYPT); 748 &cbc_iv,DES_ENCRYPT);