diff options
author | Bernhard R. Link <brlink@debian.org> | 2008-06-09 22:23:58 +0200 |
---|---|---|
committer | Bernhard R. Link <brlink@debian.org> | 2008-06-22 16:39:30 +0200 |
commit | dd36053ca5b842759aa2c5cc5f653a84a98cbd47 (patch) | |
tree | 4bb3d38abac26ea775d9cfc3b8ab7c4cc55fcd9f /src | |
parent | 845b825f3f16ae02c8083f046ef13d5c922efa40 (diff) | |
download | ratpoison-dd36053ca5b842759aa2c5cc5f653a84a98cbd47.zip |
make xstrdup argument const char*
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); |