diff lib/lib.h @ 369:5715eed39575

Correct return types of xstrdup() and xstrndup()
author Rob Landley <rob@landley.net>
date Tue, 05 Jan 2010 10:48:32 -0600
parents 6e03d6a8df23
children c7a26e26ad08
line wrap: on
line diff
--- a/lib/lib.h	Tue Jan 05 10:46:16 2010 -0600
+++ b/lib/lib.h	Tue Jan 05 10:48:32 2010 -0600
@@ -54,8 +54,8 @@
 void *xmalloc(size_t size);
 void *xzalloc(size_t size);
 void *xrealloc(void *ptr, size_t size);
-void *xstrndup(char *s, size_t n);
-void *xstrdup(char *s);
+char *xstrndup(char *s, size_t n);
+char *xstrdup(char *s);
 char *xmsprintf(char *format, ...);
 void xprintf(char *format, ...);
 void xputs(char *s);