X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=main.c;fp=main.c;h=af2141e882a3a70d9a854547d495f9567d02c559;hp=74f95beab2abf13132f40c701a87412cc66071d0;hb=20e55d4252ca2db1fc2b1099acf8393c22903575;hpb=9a5f2da8f1779dc7cbb550c0b54ed9eb82b4d594 diff --git a/main.c b/main.c index 74f95be..af2141e 100644 --- a/main.c +++ b/main.c @@ -176,14 +176,6 @@ static void mutt_nocurses_error (const char *fmt, ...) fputc('\n', stderr); } -static void *evtloop(void *data) -{ - for (;;) { - el_dispatch(100); - pthread_testcancel(); - } -} - int main (int argc, char **argv) { char folder[_POSIX_PATH_MAX] = ""; @@ -317,7 +309,7 @@ int main (int argc, char **argv) el_initialize(); mutt_init (flags & M_NOSYSRC, commands); string_list_wipe(&commands); - pthread_create(&pt, NULL, &evtloop, NULL); + pthread_create(&pt, NULL, &el_loop, NULL); if (!option(OPTNOCURSES)) { ui_layout_init();