summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiod <>2015-10-30 15:58:40 +0000
committermiod <>2015-10-30 15:58:40 +0000
commitdfd69643099f2ddbec4e573b579c340d7c92aa23 (patch)
tree850a27ccc2996b59e1d918cfe030332dddb2e4da /src
parent8f47b4b925f4206e3dfff54c2777c243299f0e44 (diff)
downloadopenbsd-dfd69643099f2ddbec4e573b579c340d7c92aa23.tar.gz
openbsd-dfd69643099f2ddbec4e573b579c340d7c92aa23.tar.bz2
openbsd-dfd69643099f2ddbec4e573b579c340d7c92aa23.zip
print unsigned ints with %u, not %d. Reported by Pascal Cuoq.
Diffstat (limited to 'src')
-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);