#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
-#include <time.h>
#include <readline/readline.h>
#include <pthread.h>
static FILE *logfile = NULL;
static int logging=1;
- // lock this section to avoid interlacing prints from different threats
+ // lock this section to avoid interlacing prints from different threads
pthread_mutex_lock(&print_lock);
if (logging && !logfile) {