xstrdup now takes a const pointer as an argument.
[oweals/tinc.git] / lib / xalloc.h
index 3579efceb95e1260ca73478446585cf3dad6f2f1..caf0f37d251867bdc859c7f6fc2def53024c132e 100644 (file)
@@ -23,4 +23,4 @@ void *xmalloc_and_zero PARAMS ((size_t n));
 void *xcalloc PARAMS ((size_t n, size_t s));
 void *xrealloc PARAMS ((void *p, size_t n));
 
-char *xstrdup PARAMS ((char *s));
+char *xstrdup PARAMS ((const char *s));