aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib.c b/lib/lib.c
index e4b9d8eb..48689d3d 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -106,7 +106,7 @@ void *xrealloc(void *ptr, size_t size)
}
// Die unless we can allocate a copy of this many bytes of string.
-void *xstrndup(char *s, size_t n)
+char *xstrndup(char *s, size_t n)
{
char *ret = xmalloc(++n);
strncpy(ret, s, n);
@@ -116,7 +116,7 @@ void *xstrndup(char *s, size_t n)
}
// Die unless we can allocate a copy of this string.
-void *xstrdup(char *s)
+char *xstrdup(char *s)
{
return xstrndup(s, strlen(s));
}