xstrdup now takes a const pointer as an argument.
[oweals/tinc.git] / lib / xmalloc.c
index e86fb0707c687a64c4781f9f665bbee7e97a4eac..e1ab3140b79e08c5b2c0077deb564afe041b2c2d 100644 (file)
@@ -127,7 +127,7 @@ xrealloc (p, n)
 
 /* Duplicate a string */
 
-char *xstrdup(char *s)
+char *xstrdup(const char *s)
 {
   char *p;