Change #include filenames from <foo.h> to <openssl.h>.
[openssl.git] / crypto / bio / bss_log.c
index ce6401efb3372c62cafc6f624b58bb7c43363d6a..c4e991bccae6fc52b76572ccf4567bd1db7f6be0 100644 (file)
 #include <errno.h>
 
 #ifndef WIN32
+#ifdef __ultrix
+#include <sys/sylog.h>
+#else
 #include <syslog.h>
 #endif
+#endif
 
 #include "cryptlib.h"
-#include "buffer.h"
-#include "err.h"
+#include <openssl/buffer.h>
+#include <openssl/err.h>
 #ifndef NO_SYSLOG
 
 
@@ -90,7 +94,7 @@ static int MS_CALLBACK slg_new();
 static int MS_CALLBACK slg_free();
 #endif
 
-static int xopenlog(BIO* bp, char* name, int level);
+static int xopenlog(BIO* bp, const char* name, int level);
 static int xcloselog(BIO* bp);
 
 static BIO_METHOD methods_slg=
@@ -105,13 +109,12 @@ static BIO_METHOD methods_slg=
        slg_free,
        };
 
-BIO_METHOD *BIO_s_log()
+BIO_METHOD *BIO_s_log(void)
        {
        return(&methods_slg);
        }
 
-static int MS_CALLBACK slg_new(bi)
-BIO *bi;
+static int MS_CALLBACK slg_new(BIO *bi)
        {
        bi->init=1;
        bi->num=0;
@@ -124,18 +127,14 @@ BIO *bi;
        return(1);
        }
 
-static int MS_CALLBACK slg_free(a)
-BIO *a;
+static int MS_CALLBACK slg_free(BIO *a)
        {
        if (a == NULL) return(0);
        xcloselog(a);
        return(1);
        }
        
-static int MS_CALLBACK slg_write(b,in,inl)
-BIO *b;
-char *in;
-int inl;
+static int MS_CALLBACK slg_write(BIO *b, char *in, int inl)
        {
        int ret= inl;
        char* buf= in;
@@ -192,11 +191,7 @@ int inl;
        return(ret);
        }
 
-static long MS_CALLBACK slg_ctrl(b,cmd,num,ptr)
-BIO *b;
-int cmd;
-long num;
-char *ptr;
+static long MS_CALLBACK slg_ctrl(BIO *b, int cmd, long num, char *ptr)
        {
        switch (cmd)
                {
@@ -210,9 +205,7 @@ char *ptr;
        return(0);
        }
 
-static int MS_CALLBACK slg_puts(bp,str)
-BIO *bp;
-char *str;
+static int MS_CALLBACK slg_puts(BIO *bp, char *str)
        {
        int n,ret;
 
@@ -221,7 +214,7 @@ char *str;
        return(ret);
        }
 
-static int xopenlog(BIO* bp, char* name, int level)
+static int xopenlog(BIO* bp, const char* name, int level)
 {
 #if defined(WIN32)
        if((bp->ptr= (char *)RegisterEventSource(NULL, name)) == NULL){