Fix warnings all over citserver; handle function replies; remove unused code.
[citadel.git] / citadel / context.c
index cf8309e01fb8e329b624f4a3ed534f030f31c484..0b433502e4fd4c9e234c4012eb643df2ea829d7f 100644 (file)
@@ -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 (