Add const qualifier to opaque_data parameter in nghttp2_submit_ping

This commit is contained in:
Tatsuhiro Tsujikawa 2014-07-02 00:59:36 +09:00
parent 499af94840
commit ed38dbf67a
4 changed files with 4 additions and 4 deletions

View File

@ -2540,7 +2540,7 @@ int32_t nghttp2_submit_push_promise(nghttp2_session *session, uint8_t flags,
* Out of memory. * Out of memory.
*/ */
int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags, int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags,
uint8_t *opaque_data); const uint8_t *opaque_data);
/** /**
* @function * @function

View File

@ -5133,7 +5133,7 @@ int nghttp2_session_want_write(nghttp2_session *session)
} }
int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags, int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags,
uint8_t *opaque_data) const uint8_t *opaque_data)
{ {
int rv; int rv;
nghttp2_frame *frame; nghttp2_frame *frame;

View File

@ -295,7 +295,7 @@ int nghttp2_session_add_rst_stream(nghttp2_session *session,
* Out of memory. * Out of memory.
*/ */
int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags, int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags,
uint8_t *opaque_data); const uint8_t *opaque_data);
/* /*
* Adds GOAWAY frame with the last-stream-ID |last_stream_id| and the * Adds GOAWAY frame with the last-stream-ID |last_stream_id| and the

View File

@ -189,7 +189,7 @@ int32_t nghttp2_submit_headers(nghttp2_session *session, uint8_t flags,
int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags, int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags,
uint8_t *opaque_data) const uint8_t *opaque_data)
{ {
return nghttp2_session_add_ping(session, NGHTTP2_FLAG_NONE, opaque_data); return nghttp2_session_add_ping(session, NGHTTP2_FLAG_NONE, opaque_data);
} }