mirror of
https://git.zx2c4.com/wireguard-tools
synced 2026-06-11 01:40:34 -04:00
config: preserve const correctness
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
0cbe9938e1
commit
ede2c48042
1 changed files with 2 additions and 1 deletions
|
|
@ -506,8 +506,9 @@ error:
|
|||
bool config_read_line(struct config_ctx *ctx, const char *input)
|
||||
{
|
||||
size_t len, cleaned_len = 0;
|
||||
char *line, *comment;
|
||||
const char *comment;
|
||||
bool ret = true;
|
||||
char *line;
|
||||
|
||||
/* This is what strchrnul is for, but that isn't portable. */
|
||||
comment = strchr(input, COMMENT_CHAR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue