# HG changeset patch # User Matti Hamalainen # Date 1287959667 -10800 # Node ID da05b766b8c027578b87f99d2aaac67e7b8f7ad6 # Parent 741e4559252298574182d235a12043b4fe8d9325 Use a shorter timeout, remove usleep() definition because it is not needed. diff -r 741e45592522 -r da05b766b8c0 nnchat.c --- a/nnchat.c Sun Oct 24 23:09:42 2010 +0300 +++ b/nnchat.c Mon Oct 25 01:34:27 2010 +0300 @@ -9,7 +9,6 @@ #include #include #ifdef __WIN32 -#define usleep(t) Sleep((t) / 1000) /* Undefine because both windows.h and curses.h #define it */ #undef MOUSE_MOVED #endif @@ -19,7 +18,7 @@ #define SET_MAX_BACKBUF (1024) #define SET_MAX_HISTORY (16) #define SET_DELAY (15) -#define SET_DELAY_USEC (SET_DELAY * 1000) +#define SET_DELAY_USEC (SET_DELAY * 250) #define SET_KEEPALIVE (15*60) /* Ping/keepalive period in seconds */ char *ignoreList[] = {