Skip to content

Commit

Permalink
compiler complaints about discarded qualifies may be placated
Browse files Browse the repository at this point in the history
  • Loading branch information
slact committed May 17, 2022
1 parent 92dc5bd commit be81b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/nchan_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ int nchan_cstrmatch(char *cstr, ngx_int_t n, ...) {
return rc;
}

int nchan_cstr_startswith(char *cstr, char *match) {
int nchan_cstr_startswith(const char *cstr, const char *match) {
for(/*void*/; *match != '\0'; cstr++, match++) {
if(*cstr == '\0' || *cstr != *match)
return 0;
Expand Down
2 changes: 1 addition & 1 deletion src/util/nchan_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ngx_buf_t *nchan_chain_to_single_buffer(ngx_pool_t *pool, ngx_chain_t *chain, si
ngx_str_t *ngx_http_debug_pool_str(ngx_pool_t *pool);
int nchan_strmatch(ngx_str_t *val, ngx_int_t n, ...);
int nchan_cstrmatch(char *cstr, ngx_int_t n, ...);
int nchan_cstr_startswith(char *cstr, char *match);
int nchan_cstr_startswith(const char *cstr, const char *match);
int nchan_str_startswith(ngx_str_t *str, const char *match);
int nchan_str_after(ngx_str_t **str, const char *match);

Expand Down

0 comments on commit be81b98

Please sign in to comment.