X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=anykey.c;h=70e2248a0df20e72a4b0047f17e1aaf7ed2f93e4;hp=5bc230bd7b47eccdf268f33c21db416eb5beac8d;hb=d79d480604b5c9d0946f6e25c638bdfae1b8961d;hpb=68cdf174d18df9b5a69eea60469caf32d265a906 diff --git a/anykey.c b/anykey.c index 5bc230b..70e2248 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 * @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include "sigrok-cli.h" #ifdef _WIN32 @@ -38,7 +38,6 @@ 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; @@ -70,7 +69,7 @@ void add_anykey(void) sr_session_source_add(STDIN_FILENO, G_IO_IN, -1, received_anykey, NULL); - printf("Press any key to stop acquisition.\n"); + g_message("Press any key to stop acquisition."); } /* Restore stdin attributes. */