summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/snprintf.c')
-rw-r--r--contrib/ntp/libntp/snprintf.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/ntp/libntp/snprintf.c b/contrib/ntp/libntp/snprintf.c
index 101bc17..7588b84 100644
--- a/contrib/ntp/libntp/snprintf.c
+++ b/contrib/ntp/libntp/snprintf.c
@@ -10,6 +10,8 @@
#endif
#include <stdio.h>
+#include "l_stdlib.h"
+
#ifdef __STDC__
int snprintf(char *str, size_t n, const char *fmt, ...)
#else
@@ -42,11 +44,12 @@ int snprintf(str, n, fmt, va_alist)
}
int
-vsnprintf(str, n, fmt, ap)
- char *str;
- size_t n;
- const char *fmt;
- va_list ap;
+vsnprintf(
+ char *str,
+ size_t n,
+ const char *fmt,
+ va_list ap
+ )
{
#ifdef VSPRINTF_CHARSTAR
return (strlen(vsprintf(str, fmt, ap)));
OpenPOWER on IntegriCloud