Skip to content

Commit

Permalink
test: fix unused-but-set-variable warning
Browse files Browse the repository at this point in the history
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information
asalkeld committed Feb 18, 2013
1 parent bd2355f commit ed5435f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/check_ipc.c
Expand Up @@ -594,10 +594,12 @@ count_bulk_events(int32_t fd, int32_t revents, void *data)
struct qb_ipc_response_header res_header;
int32_t res;

events_received++;
res = qb_ipcc_event_recv(conn, &res_header,
sizeof(struct qb_ipc_response_header),
-1);
if (res > 0) {
events_received++;
}

if (events_received >= num_bulk_events) {
qb_loop_stop(cl);
Expand Down

0 comments on commit ed5435f

Please sign in to comment.