提交 ea58130d 编写于 作者: R Richard Levitte

On Unicos, openlog() isn't constified, so let's not do that in xopenlog()

上级 3132e196
...@@ -115,7 +115,7 @@ static int MS_CALLBACK slg_puts(BIO *h, const char *str); ...@@ -115,7 +115,7 @@ static int MS_CALLBACK slg_puts(BIO *h, const char *str);
static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); static long MS_CALLBACK slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
static int MS_CALLBACK slg_new(BIO *h); static int MS_CALLBACK slg_new(BIO *h);
static int MS_CALLBACK slg_free(BIO *data); static int MS_CALLBACK slg_free(BIO *data);
static void xopenlog(BIO* bp, const char* name, int level); static void xopenlog(BIO* bp, char* name, int level);
static void xsyslog(BIO* bp, int priority, const char* string); static void xsyslog(BIO* bp, int priority, const char* string);
static void xcloselog(BIO* bp); static void xcloselog(BIO* bp);
#ifdef WIN32 #ifdef WIN32
...@@ -223,7 +223,7 @@ static int MS_CALLBACK slg_puts(BIO *bp, const char *str) ...@@ -223,7 +223,7 @@ static int MS_CALLBACK slg_puts(BIO *bp, const char *str)
#if defined(WIN32) #if defined(WIN32)
static void xopenlog(BIO* bp, const char* name, int level) static void xopenlog(BIO* bp, char* name, int level)
{ {
if ( !register_event_source ) if ( !register_event_source )
{ {
...@@ -291,7 +291,7 @@ static void xcloselog(BIO* bp) ...@@ -291,7 +291,7 @@ static void xcloselog(BIO* bp)
static int VMS_OPC_target = LOG_DAEMON; static int VMS_OPC_target = LOG_DAEMON;
static void xopenlog(BIO* bp, const char* name, int level) static void xopenlog(BIO* bp, char* name, int level)
{ {
VMS_OPC_target = level; VMS_OPC_target = level;
} }
...@@ -348,9 +348,9 @@ static void xcloselog(BIO* bp) ...@@ -348,9 +348,9 @@ static void xcloselog(BIO* bp)
#else /* Unix */ #else /* Unix */
static void xopenlog(BIO* bp, const char* name, int level) static void xopenlog(BIO* bp, char* name, int level)
{ {
openlog((char *)name, LOG_PID|LOG_CONS, level); openlog(name, LOG_PID|LOG_CONS, level);
} }
static void xsyslog(BIO *bp, int priority, const char *string) static void xsyslog(BIO *bp, int priority, const char *string)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册