diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/ratpoison.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -83,7 +83,7 @@ xrealloc (void *ptr, size_t size) } char * -xstrdup (char *s) +xstrdup (const char *s) { char *value; value = strdup (s); diff --git a/src/ratpoison.h b/src/ratpoison.h index e0052f2..b0690f6 100644 --- a/src/ratpoison.h +++ b/src/ratpoison.h @@ -99,7 +99,7 @@ void read_rc_file (FILE *file); void fatal (const char *msg); void *xmalloc (size_t size); void *xrealloc (void *ptr, size_t size); -char *xstrdup (char *s); +char *xstrdup (const char *s); char *xsprintf (char *fmt, ...); char *xvsprintf (char *fmt, va_list ap); int str_comp (char *s1, char *s2, int len); |