From 91ee5e4c1f153bbfc7c70e58f53506ff106a0c3a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 23 Feb 2008 10:47:26 +0000 Subject: [PATCH] Use ctime_r() instead of CTIME_R(). --- src/sbbs3/ftpsrvr.c | 2 +- src/sbbs3/main.cpp | 2 +- src/sbbs3/services.c | 4 ++-- src/sbbs3/websrvr.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/sbbs3/ftpsrvr.c b/src/sbbs3/ftpsrvr.c index df6d6d9f26..383f2d9cdc 100644 --- a/src/sbbs3/ftpsrvr.c +++ b/src/sbbs3/ftpsrvr.c @@ -4663,7 +4663,7 @@ void DLLCALL ftp_server(void* arg) t=time(NULL); lprintf(LOG_INFO,"Initializing on %.24s with options: %lx" - ,CTIME_R(&t,str),startup->options); + ,ctime_r(&t,str),startup->options); /* Initial configuration and load from CNF files */ SAFECOPY(scfg.ctrl_dir, startup->ctrl_dir); diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index c9c57dcd35..d3eaa67be6 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -4290,7 +4290,7 @@ void DLLCALL bbs_thread(void* arg) t=time(NULL); lprintf(LOG_INFO,"Initializing on %.24s with options: %lx" - ,CTIME_R(&t,str),startup->options); + ,ctime_r(&t,str),startup->options); if(chdir(startup->ctrl_dir)!=0) lprintf(LOG_ERR,"!ERROR %d changing directory to: %s", errno, startup->ctrl_dir); diff --git a/src/sbbs3/services.c b/src/sbbs3/services.c index 089ccc0a5f..fd75596301 100644 --- a/src/sbbs3/services.c +++ b/src/sbbs3/services.c @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2007 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2008 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -1707,7 +1707,7 @@ void DLLCALL services_thread(void* arg) t=time(NULL); lprintf(LOG_INFO,"Initializing on %.24s with options: %lx" - ,CTIME_R(&t,str),startup->options); + ,ctime_r(&t,str),startup->options); /* Initial configuration and load from CNF files */ SAFECOPY(scfg.ctrl_dir, startup->ctrl_dir); diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 9e970a14ed..e60682f708 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2008 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -5310,7 +5310,7 @@ void DLLCALL web_server(void* arg) t=time(NULL); lprintf(LOG_INFO,"Initializing on %.24s with options: %lx" - ,CTIME_R(&t,logstr),startup->options); + ,ctime_r(&t,logstr),startup->options); if(chdir(startup->ctrl_dir)!=0) lprintf(LOG_ERR,"!ERROR %d changing directory to: %s", errno, startup->ctrl_dir); -- GitLab