1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-12 08:43:53 -05:00

provide_xrm_string: make argument type const char *.

All call sites so far have happened to pass it a mutable string, but
it doesn't actually need one.
This commit is contained in:
Simon Tatham
2019-04-13 19:09:56 +01:00
parent 39c20d4819
commit 2692bfe8ee
2 changed files with 4 additions and 3 deletions

View File

@ -301,9 +301,10 @@ static int keycmp(void *av, void *bv)
return strcmp(a->key, b->key);
}
void provide_xrm_string(char *string)
void provide_xrm_string(const char *string)
{
char *p, *q, *key;
const char *p, *q;
char *key;
struct skeyval *xrms, *ret;
p = q = strchr(string, ':');