From 622d78270b2b75e463603a6ad0432c94e806a355 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 18 Nov 2004 01:02:18 +0000 Subject: [PATCH] Using listShiftNode() macro. Removed redundant ld==NULL check. --- src/sbbs3/websrvr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 976f7ded58..f9d14cd762 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -2888,15 +2888,13 @@ void http_logging_thread(void* arg) break; pthread_mutex_lock(&log_mutex); - ld=listRemoveNode(&log_list, FIRST_NODE); + ld=listShiftNode(&log_list); pthread_mutex_unlock(&log_mutex); if(ld==NULL) { lprintf(LOG_ERR,"%04d http logging thread received NULL linked list log entry" ,server_socket); continue; } - if(ld==NULL) - continue; SAFECOPY(newfilename,base); strftime(strchr(newfilename,0),15,"%Y-%m-%d.log",&ld->completed); if(strcmp(newfilename,filename)) { -- GitLab