git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b75e4
)
ctdb-utils: CID 1343331 Unchecked return value from library (CHECKED_RETURN)
author
Martin Schwenke
<martin@meltin.net>
Thu, 23 Feb 2017 02:14:27 +0000
(13:14 +1100)
committer
Martin Schwenke
<martins@samba.org>
Fri, 24 Feb 2017 06:47:09 +0000
(07:47 +0100)
Explicitly ignore keyboard input in ping_pong.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/utils/ping_pong/ping_pong.c
patch
|
blob
|
history
diff --git
a/ctdb/utils/ping_pong/ping_pong.c
b/ctdb/utils/ping_pong/ping_pong.c
index f7f2eb1ed164ab39d21e61cd87767ad6feead5c9..3597daac20117039d61f9771c757e3fdbfa29400 100644
(file)
--- 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);
}