X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=anykey.c;h=24970c2c299a26733dc754a34a3c586925367be5;hp=cc40bedb7947a68d4bfde261106fdfc6d28e98f7;hb=efdb6a22b4d357006d0fe6c4b88e1980dc805d9b;hpb=60ea8937c54f5a8a36b4e4f91de03ff545e2bcd9 diff --git a/anykey.c b/anykey.c index cc40bed..24970c2 100644 --- a/anykey.c +++ b/anykey.c @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the sigrok-cli project. * * Copyright (C) 2011 Bert Vermeulen * @@ -38,11 +38,11 @@ static struct termios term_orig; static int received_anykey(int fd, int revents, void *cb_data) { - /* Avoid compiler warnings. */ (void)fd; (void)revents; (void)cb_data; + sr_session_source_remove(STDIN_FILENO); sr_session_stop(); return TRUE;