summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernhard R. Link <brlink@debian.org>2008-06-09 22:23:58 +0200
committerBernhard R. Link <brlink@debian.org>2008-06-22 16:39:30 +0200
commitdd36053ca5b842759aa2c5cc5f653a84a98cbd47 (patch)
tree4bb3d38abac26ea775d9cfc3b8ab7c4cc55fcd9f /src
parent845b825f3f16ae02c8083f046ef13d5c922efa40 (diff)
downloadratpoison-dd36053ca5b842759aa2c5cc5f653a84a98cbd47.zip
make xstrdup argument const char*
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/ratpoison.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 48fdb88..59f15f1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);