Skip to content

Commit

Permalink
libevent-client: fix Incorrect format found by PVS Studio (V576)
Browse files Browse the repository at this point in the history
Consider checking the fourth actual argument of the 'fprintf' function. The SIGNED integer type argument is expected.
  • Loading branch information
alagoutte committed Jan 3, 2017
1 parent ae87a44 commit 8256c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/libevent-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static int on_stream_close_callback(nghttp2_session *session, int32_t stream_id,
int rv;

if (session_data->stream_data->stream_id == stream_id) {
fprintf(stderr, "Stream %d closed with error_code=%d\n", stream_id,
fprintf(stderr, "Stream %d closed with error_code=%u\n", stream_id,
error_code);
rv = nghttp2_session_terminate_session(session, NGHTTP2_NO_ERROR);
if (rv != 0) {
Expand Down

0 comments on commit 8256c6e

Please sign in to comment.