X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcontext.c;h=0b433502e4fd4c9e234c4012eb643df2ea829d7f;hb=e26a8dee20d1726b4995821f717f867f50fc5659;hp=181d0347c87db600a9862d947130a4511fca7b13;hpb=06dbca681a76e32927648a28ad644a41d4b150f6;p=citadel.git diff --git a/citadel/context.c b/citadel/context.c index 181d0347c..0b433502e 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -276,12 +276,10 @@ void terminate_idle_sessions(void) { CitContext *ccptr; time_t now; - int session_to_kill; int killed = 0; int longrunners = 0; now = time(NULL); - session_to_kill = 0; begin_critical_section(S_SESSION_TABLE); for (ccptr = ContextList; ccptr != NULL; ccptr = ccptr->next) { if ( @@ -588,7 +586,7 @@ void context_cleanup(void) rem = ptr->next; --num_sessions; - syslog(LOG_DEBUG, "context_cleanup(): Purging session #%d %s\n", ptr->cs_pid, ptr->ServiceName); + syslog(LOG_DEBUG, "context_cleanup(): purging session %d\n", ptr->cs_pid); RemoveContext(ptr); free (ptr); ptr = rem;