Change #include filenames from <foo.h> to <openssl.h>.
[openssl.git] / crypto / bf / bftest.c
index 9266cf813a4f10b638c0c806d5107d1e56329f29..df4c211d9db72a478a0338b8e96cac7c35b971f7 100644 (file)
@@ -62,7 +62,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include "blowfish.h"
+#include <openssl/blowfish.h>
 
 char *bf_key[2]={
        "abcdefghijklmnopqrstuvwxyz",
@@ -260,9 +260,7 @@ static int test();
 static int print_test_data();
 #endif
 
-int main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
        {
        int ret;
 
@@ -275,7 +273,7 @@ char *argv[];
        return(0);
        }
 
-static int print_test_data()
+static int print_test_data(void)
        {
        unsigned int i,j;
 
@@ -342,7 +340,7 @@ static int print_test_data()
        return(0);
        }
 
-static int test()
+static int test(void)
        {
        unsigned char cbc_in[40],cbc_out[40],iv[8];
        int i,n,err=0;
@@ -364,11 +362,11 @@ static int test()
                        printf("BF_encrypt error encrypting\n");
                        printf("got     :");
                        for (i=0; i<2; i++)
-                               printf("%08lX ",data[i]);
+                               printf("%08lX ",(unsigned long)data[i]);
                        printf("\n");
                        printf("expected:");
                        for (i=0; i<2; i++)
-                               printf("%08lX ",bf_cipher[n][i]);
+                               printf("%08lX ",(unsigned long)bf_cipher[n][i]);
                        err=1;
                        printf("\n");
                        }
@@ -379,11 +377,11 @@ static int test()
                        printf("BF_encrypt error decrypting\n");
                        printf("got     :");
                        for (i=0; i<2; i++)
-                               printf("%08lX ",data[i]);
+                               printf("%08lX ",(unsigned long)data[i]);
                        printf("\n");
                        printf("expected:");
                        for (i=0; i<2; i++)
-                               printf("%08lX ",bf_plain[n][i]);
+                               printf("%08lX ",(unsigned long)bf_plain[n][i]);
                        printf("\n");
                        err=1;
                        }