Skip to content

Commit be81b98

Browse files
committed
compiler complaints about discarded qualifies may be placated
1 parent 92dc5bd commit be81b98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/util/nchan_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ int nchan_cstrmatch(char *cstr, ngx_int_t n, ...) {
329329
return rc;
330330
}
331331

332-
int nchan_cstr_startswith(char *cstr, char *match) {
332+
int nchan_cstr_startswith(const char *cstr, const char *match) {
333333
for(/*void*/; *match != '\0'; cstr++, match++) {
334334
if(*cstr == '\0' || *cstr != *match)
335335
return 0;

src/util/nchan_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ngx_buf_t *nchan_chain_to_single_buffer(ngx_pool_t *pool, ngx_chain_t *chain, si
2020
ngx_str_t *ngx_http_debug_pool_str(ngx_pool_t *pool);
2121
int nchan_strmatch(ngx_str_t *val, ngx_int_t n, ...);
2222
int nchan_cstrmatch(char *cstr, ngx_int_t n, ...);
23-
int nchan_cstr_startswith(char *cstr, char *match);
23+
int nchan_cstr_startswith(const char *cstr, const char *match);
2424
int nchan_str_startswith(ngx_str_t *str, const char *match);
2525
int nchan_str_after(ngx_str_t **str, const char *match);
2626

0 commit comments

Comments
 (0)