diff --git a/client/src/proxmark3.c b/client/src/proxmark3.c index b09c3a9ae..179b3f343 100644 --- a/client/src/proxmark3.c +++ b/client/src/proxmark3.c @@ -139,17 +139,14 @@ static int check_comm(void) { msleep(10); return 0; } -static void flush_history(void) { #ifdef HAVE_READLINE +static void flush_history(void) { if (session.history_path) { write_history(session.history_path); free(session.history_path); } -#endif } -#ifdef HAVE_READLINE - # if defined(_WIN32) /* static bool WINAPI terminate_handler(DWORD t) {