diff options
author | obrien <obrien@FreeBSD.org> | 2010-04-05 22:09:29 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2010-04-05 22:09:29 +0000 |
commit | 48496193ae9553467f32b177c73be5f1b8fd9fd1 (patch) | |
tree | a26d35731bc3e86819a6cbbce4780ab9a015260e /lib/libc/stdio/vasprintf.c | |
parent | 877d8ac3262677f82adedc171454bdcd90750020 (diff) | |
download | FreeBSD-src-48496193ae9553467f32b177c73be5f1b8fd9fd1.zip FreeBSD-src-48496193ae9553467f32b177c73be5f1b8fd9fd1.tar.gz |
I feel this wording of the history is more clear.
ANSIfy vasprintf() while I'm here.
Diffstat (limited to 'lib/libc/stdio/vasprintf.c')
-rw-r--r-- | lib/libc/stdio/vasprintf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/stdio/vasprintf.c b/lib/libc/stdio/vasprintf.c index 0dcdac9..a1b600a 100644 --- a/lib/libc/stdio/vasprintf.c +++ b/lib/libc/stdio/vasprintf.c @@ -36,16 +36,13 @@ __FBSDID("$FreeBSD$"); #include "local.h" int -vasprintf(str, fmt, ap) - char **str; - const char *fmt; - __va_list ap; +vasprintf(char **str, const char *fmt, __va_list ap) { - int ret; FILE f = FAKE_FILE; + int ret; f._flags = __SWR | __SSTR | __SALC; - f._bf._base = f._p = (unsigned char *)malloc(128); + f._bf._base = f._p = malloc(128); if (f._bf._base == NULL) { *str = NULL; errno = ENOMEM; |