mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-12-12 10:25:41 +00:00
Add const qualifier to opaque_data parameter in nghttp2_submit_ping
This commit is contained in:
parent
499af94840
commit
ed38dbf67a
@ -2540,7 +2540,7 @@ int32_t nghttp2_submit_push_promise(nghttp2_session *session, uint8_t flags,
|
||||
* Out of memory.
|
||||
*/
|
||||
int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags,
|
||||
uint8_t *opaque_data);
|
||||
const uint8_t *opaque_data);
|
||||
|
||||
/**
|
||||
* @function
|
||||
|
@ -5133,7 +5133,7 @@ int nghttp2_session_want_write(nghttp2_session *session)
|
||||
}
|
||||
|
||||
int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags,
|
||||
uint8_t *opaque_data)
|
||||
const uint8_t *opaque_data)
|
||||
{
|
||||
int rv;
|
||||
nghttp2_frame *frame;
|
||||
|
@ -295,7 +295,7 @@ int nghttp2_session_add_rst_stream(nghttp2_session *session,
|
||||
* Out of memory.
|
||||
*/
|
||||
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
|
||||
|
@ -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,
|
||||
uint8_t *opaque_data)
|
||||
const uint8_t *opaque_data)
|
||||
{
|
||||
return nghttp2_session_add_ping(session, NGHTTP2_FLAG_NONE, opaque_data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user