diff options
author | Martin Schwenke <martin@meltin.net> | 2017-02-23 13:14:27 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-02-24 07:47:09 +0100 |
commit | 42d05772174d4eb37ab4d3fdca796dbae5ca044b (patch) | |
tree | 7831dea11d2098f9ddfab8cd511d82efb265a084 /ctdb | |
parent | 55b75e4ecec17fdb741c12ad5a22846f77f71215 (diff) | |
download | samba-42d05772174d4eb37ab4d3fdca796dbae5ca044b.tar.gz |
ctdb-utils: CID 1343331 Unchecked return value from library (CHECKED_RETURN)
Explicitly ignore keyboard input in ping_pong.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/utils/ping_pong/ping_pong.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/utils/ping_pong/ping_pong.c b/ctdb/utils/ping_pong/ping_pong.c index f7f2eb1ed16..3597daac201 100644 --- a/ctdb/utils/ping_pong/ping_pong.c +++ b/ctdb/utils/ping_pong/ping_pong.c @@ -267,7 +267,7 @@ int main(int argc, char *argv[]) printf("Holding lock, press any key to continue...\n"); printf("You should run the same command on another node now.\n"); - getchar(); + (void)getchar(); printf("Good bye.\n"); exit(0); } |