diff options
author | Rob Landley <rob@landley.net> | 2010-01-05 10:48:32 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2010-01-05 10:48:32 -0600 |
commit | 1e01cd1f48bff3fdd12f45bf1c3adfab821ee287 (patch) | |
tree | 0643c843391c506b5fc31502a0610772e11b3670 /lib/lib.h | |
parent | 69bc2c3ac1544ff51bd5d7979e02e2840241ec32 (diff) | |
download | toybox-1e01cd1f48bff3fdd12f45bf1c3adfab821ee287.tar.gz |
Correct return types of xstrdup() and xstrndup()
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,8 +54,8 @@ void perror_exit(char *msg, ...) noreturn; 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); |