As ftruncate is not availabe on all platforms, switch back to
[oweals/openssl.git] / crypto / err / err_prn.c
index ecd0e7c4fa8535600d2f4b2f35321d3d85675d89..0999ff214bf6902f89b80f481b05bb95c0cddf04 100644 (file)
  */
 
 #include <stdio.h>
-#include "lhash.h"
-#include "crypto.h"
+#include <openssl/lhash.h>
+#include <openssl/crypto.h>
 #include "cryptlib.h"
-#include "buffer.h"
-#include "err.h"
-#include "crypto.h"
+#include <openssl/buffer.h>
+#include <openssl/err.h>
+#include <openssl/crypto.h>
 
 #ifndef NO_FP_API
-void ERR_print_errors_fp(fp)
-FILE *fp;
+void ERR_print_errors_fp(FILE *fp)
        {
        unsigned long l;
        char buf[200];
-       char *file,*data;
+       const char *file,*data;
        int line,flags;
        unsigned long es;
 
@@ -83,13 +82,12 @@ FILE *fp;
        }
 #endif
 
-void ERR_print_errors(bp)
-BIO *bp;
+void ERR_print_errors(BIO *bp)
        {
        unsigned long l;
        char buf[256];
        char buf2[256];
-       char *file,*data;
+       const char *file,*data;
        int line,flags;
        unsigned long es;