mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00: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:
parent
39c20d4819
commit
2692bfe8ee
@ -267,7 +267,7 @@ int keysym_to_unicode(int keysym);
|
||||
char *x_get_default(const char *key);
|
||||
|
||||
/* Things uxstore.c provides to gtkwin.c */
|
||||
void provide_xrm_string(char *string);
|
||||
void provide_xrm_string(const char *string);
|
||||
|
||||
/* Function that {gtkapp,gtkmain}.c needs from ux{pterm,putty}.c. Does
|
||||
* early process setup that varies between applications (e.g.
|
||||
|
@ -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, ':');
|
||||
|
Loading…
Reference in New Issue
Block a user