Add an evil cast, because POSIX/SUSv2 define connect(2) require
[oweals/openssl.git] / crypto / bio / bss_log.c
index 497c8aee615b5a5efa9f52d7cb1cf0506414b5df..4308b196633630e72eb35188416770a295107ca2 100644 (file)
@@ -100,6 +100,7 @@ static BIO_METHOD methods_slg=
        slg_ctrl,
        slg_new,
        slg_free,
+       NULL,
        };
 
 BIO_METHOD *BIO_s_log(void)
@@ -133,11 +134,10 @@ static int MS_CALLBACK slg_write(BIO *b, char *in, int inl)
        char* buf= in;
        char* pp;
 #if defined(WIN32)
-       LPTSTR lpszStrings[2];
+       LPCSTR lpszStrings[2];
        WORD evtype= EVENTLOG_ERROR_TYPE;
        int pid = _getpid();
        char pidbuf[20];
-       int pidbufl;
 #else
        int priority;
 #endif