mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Add a missing const.
The variable in question holds the return value of strchr when its input string was const, so it ought logically to be const itself even though the official prototype of strchr permits it not to be.
This commit is contained in:
parent
e090e55179
commit
1c4f122525
2
config.c
2
config.c
@ -1227,7 +1227,7 @@ static void portfwd_handler(union control *ctrl, void *dlg,
|
|||||||
if (key) {
|
if (key) {
|
||||||
static const char *const afs = "A46";
|
static const char *const afs = "A46";
|
||||||
static const char *const dirs = "LRD";
|
static const char *const dirs = "LRD";
|
||||||
char *afp;
|
const char *afp;
|
||||||
int dir;
|
int dir;
|
||||||
#ifndef NO_IPV6
|
#ifndef NO_IPV6
|
||||||
int idx;
|
int idx;
|
||||||
|
Loading…
Reference in New Issue
Block a user