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