Change the command line options of mkerr.pl so -static is now default and
[oweals/openssl.git] / crypto / evp / bio_ok.c
index fbd6d532c622d678c21d11aae4a792c654193dee..328bbd6c22ea0a16452c2d2649f5438e717f8bae 100644 (file)
 #include <stdio.h>
 #include <errno.h>
 #include "cryptlib.h"
-#include "buffer.h"
-#include "bio.h"
-#include "evp.h"
-#include "rand.h"
+#include <openssl/buffer.h>
+#include <openssl/bio.h>
+#include <openssl/evp.h>
+#include <openssl/rand.h>
 
 #ifndef NOPROTO
 static int ok_write(BIO *h,char *buf,int num);
@@ -441,10 +441,11 @@ static long ok_ctrl(BIO *b, int cmd, long num, char *ptr)
        return(ret);
        }
 
-static void longswap(char* ptr, int len)
+static void longswap(void *_ptr, int len)
 {
 #ifndef L_ENDIAN
        int i;
+       char *ptr=_ptr;
 
        for(i= 0;i < len;i+= 4){
                *((unsigned long *)&(ptr[i]))= swapem(*((unsigned long *)&(ptr[i])));