Found by Coverity:
CID
1019967 (#1 of 1): Unchecked return value from library
(CHECKED_RETURN)2. check_return: Calling poll(NULL, 0UL, 60000) without
checking return value. This library function may fail and return an
error code.
We really don't care whether this poll succeeds or not.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* Loop for 20 minutes */
for (i = 1; i < 21; i++) {
/* Sleep 60 seconds */
- poll(NULL, 0, 60000);
+ (void) poll(NULL, 0, 60000);
/* 20 minutes tracepoint */
if ((i % 20) == 0) {