summaryrefslogtreecommitdiff
path: root/nss/lib/dbm/src/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/lib/dbm/src/snprintf.c')
-rw-r--r--nss/lib/dbm/src/snprintf.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/nss/lib/dbm/src/snprintf.c b/nss/lib/dbm/src/snprintf.c
index 377a8d8..3cafacf 100644
--- a/nss/lib/dbm/src/snprintf.c
+++ b/nss/lib/dbm/src/snprintf.c
@@ -13,35 +13,34 @@
int
snprintf(char *str, size_t n, const char *fmt, ...)
{
- va_list ap;
+ va_list ap;
#ifdef VSPRINTF_CHARSTAR
- char *rp;
+ char *rp;
#else
- int rval;
+ int rval;
#endif
- va_start(ap, fmt);
+ va_start(ap, fmt);
#ifdef VSPRINTF_CHARSTAR
- rp = vsprintf(str, fmt, ap);
- va_end(ap);
- return (strlen(rp));
+ rp = vsprintf(str, fmt, ap);
+ va_end(ap);
+ return (strlen(rp));
#else
- rval = vsprintf(str, fmt, ap);
- va_end(ap);
- return (rval);
+ rval = vsprintf(str, fmt, ap);
+ va_end(ap);
+ return (rval);
#endif
}
int
-vsnprintf(str, n, fmt, ap)
- char *str;
- size_t n;
- const char *fmt;
- va_list ap;
+ vsnprintf(str, n, fmt, ap) char *str;
+size_t n;
+const char *fmt;
+va_list ap;
{
#ifdef VSPRINTF_CHARSTAR
- return (strlen(vsprintf(str, fmt, ap)));
+ return (strlen(vsprintf(str, fmt, ap)));
#else
- return (vsprintf(str, fmt, ap));
+ return (vsprintf(str, fmt, ap));
#endif
}