summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/asprintf.c
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2005-02-09 21:35:46 +0000
committerkleink <kleink@NetBSD.org>2005-02-09 21:35:46 +0000
commitfd5cb0acea84d278e04e640d37ca2398f894991f (patch)
tree7491880dfdd2422b7764def72de04814feb1363e /lib/libc/stdio/asprintf.c
parenta7126d64352edba69608f07191b9be56111e16f5 (diff)
A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked(). * Add internal names for arc4random(), endnetpath(), fhstatvfs(), fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(), uuid_create_nil(), uuid_is_nil(), and wcwidth(). * Include namespace.h where supposed to.
Diffstat (limited to 'lib/libc/stdio/asprintf.c')
-rw-r--r--lib/libc/stdio/asprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c
index 6d02bf8d2a0..4a6dea0b8f8 100644
--- a/lib/libc/stdio/asprintf.c
+++ b/lib/libc/stdio/asprintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: asprintf.c,v 1.13 2005/01/09 05:04:02 christos Exp $ */
+/* $NetBSD: asprintf.c,v 1.14 2005/02/09 21:35:47 kleink Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: asprintf.c,v 1.13 2005/01/09 05:04:02 christos Exp $");
+__RCSID("$NetBSD: asprintf.c,v 1.14 2005/02/09 21:35:47 kleink Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -65,7 +65,7 @@ asprintf(char **str, char const *fmt, ...)
goto err;
f._bf._size = f._w = 127; /* Leave room for the NUL */
va_start(ap, fmt);
- ret = vfprintf_unlocked(&f, fmt, ap);
+ ret = __vfprintf_unlocked(&f, fmt, ap);
va_end(ap);
if (ret == -1)
goto err;