libevent-client: fix Incorrect format found by PVS Studio (V576)

Consider checking the fourth actual argument of the 'fprintf' function. The SIGNED integer type argument is expected.
This commit is contained in:
Alexis La Goutte 2017-01-03 21:54:28 +01:00
parent ae87a44b94
commit 8256c6e070
1 changed files with 1 additions and 1 deletions

View File

@ -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) {