Skip to content

Commit b154e9e

Browse files
authored
Merge pull request #454 from ngtcp2/add-const
Add const to nghttp3_frame_settings.local_settings
2 parents 38854cf + 03edf38 commit b154e9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/nghttp3_frame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef struct nghttp3_frame_settings {
9393
nghttp3_settings_entry *iv;
9494
/* local_settings is set when sending SETTINGS frame. It is not
9595
used on reception. */
96-
nghttp3_settings *local_settings;
96+
const nghttp3_settings *local_settings;
9797
} nghttp3_frame_settings;
9898

9999
typedef struct nghttp3_frame_goaway {

lib/nghttp3_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int nghttp3_stream_write_settings(nghttp3_stream *stream,
342342
.niv = 3,
343343
.iv = ents,
344344
};
345-
nghttp3_settings *local_settings = infr->local_settings;
345+
const nghttp3_settings *local_settings = infr->local_settings;
346346
int64_t payloadlen;
347347

348348
ents[0] = (nghttp3_settings_entry){

0 commit comments

Comments
 (0)