From 28533e162a9fd3fb2f49df8d73b415aea91397c3 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 19 Jul 2012 23:45:57 +0000
Subject: [PATCH] Use lprintf() not fprintf()

---
 src/sbbs3/js_socket.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/sbbs3/js_socket.c b/src/sbbs3/js_socket.c
index 76de584b05..719f467f21 100644
--- a/src/sbbs3/js_socket.c
+++ b/src/sbbs3/js_socket.c
@@ -1488,24 +1488,24 @@ static JSBool js_socket_set(JSContext *cx, JSObject *obj, jsid id, JSBool strict
 //								if((ret=cryptSetAttribute(p->session, CRYPT_SESSINFO_VERSION, 0))==CRYPT_OK) {
 									if((ret=cryptSetAttributeString(p->session, CRYPT_SESSINFO_SERVER_NAME, p->hostname, strlen(p->hostname)))==CRYPT_OK) {
 										if((ret=cryptSetAttribute(p->session, CRYPT_SESSINFO_ACTIVE, 1))!=CRYPT_OK) {
-											fprintf(stderr,"cryptSetAttribute(CRYPT_SESSINFO_ACTIVE) Error %d\n",ret);
+											lprintf(LOG_ERR,"cryptSetAttribute(CRYPT_SESSINFO_ACTIVE) Error %d\n",ret);
 											cryptDestroySession(p->session);
 											p->session=-1;
 											ioctlsocket(p->sock,FIONBIO,(ulong*)&(p->nonblocking));
 										}
 									}
-									else fprintf(stderr,"cryptSetAttributeString(CRYPT_SESSINFO_SERVER_NAME) Error %d\n",ret);
+									else lprintf(LOG_ERR,"cryptSetAttributeString(CRYPT_SESSINFO_SERVER_NAME) Error %d\n",ret);
 //								}
-//								else fprintf(stderr,"cryptSetAttributeString(CRYPT_SESSINFO_VERSION) Error %d\n",ret);
+//								else lprintf(LOG_ERR,"cryptSetAttributeString(CRYPT_SESSINFO_VERSION) Error %d\n",ret);
 							}
 							else {
-								fprintf(stderr,"cryptSetAttribute(CRYPT_SESSINFO_NETWORKSOCKET) Error %d\n",ret);
+								lprintf(LOG_ERR,"cryptSetAttribute(CRYPT_SESSINFO_NETWORKSOCKET) Error %d\n",ret);
 								cryptDestroySession(p->session);
 								p->session=-1;
 								ioctlsocket(p->sock,FIONBIO,(ulong*)&(p->nonblocking));
 							}
 						}
-						else fprintf(stderr,"cryptCreateSession() Error %d\n",ret);
+						else lprintf(LOG_ERR,"cryptCreateSession() Error %d\n",ret);
 					}
 				}
 			}
-- 
GitLab