summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/sprintf.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1997-07-25 20:29:57 +0000
committermickey <mickey@openbsd.org>1997-07-25 20:29:57 +0000
commitb71133560cf1ffb85aedfde08af920b5a3146273 (patch)
tree9bc09abca4a79e54e78902deb91633a9273e6fe9 /lib/libc/stdio/sprintf.c
parent#if __STDC__ --> #ifdef __STDC__ (diff)
downloadwireguard-openbsd-b71133560cf1ffb85aedfde08af920b5a3146273.tar.xz
wireguard-openbsd-b71133560cf1ffb85aedfde08af920b5a3146273.zip
#if __STDC__ --> #ifdef __STDC__
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
-rw-r--r--lib/libc/stdio/sprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c
index 4b831ac3028..16b99a27f97 100644
--- a/lib/libc/stdio/sprintf.c
+++ b/lib/libc/stdio/sprintf.c
@@ -35,11 +35,11 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: sprintf.c,v 1.2 1996/08/19 08:33:06 tholo Exp $";
+static char rcsid[] = "$OpenBSD: sprintf.c,v 1.3 1997/07/25 20:30:11 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
@@ -48,7 +48,7 @@ static char rcsid[] = "$OpenBSD: sprintf.c,v 1.2 1996/08/19 08:33:06 tholo Exp $
#include "local.h"
int
-#if __STDC__
+#ifdef __STDC__
sprintf(char *str, char const *fmt, ...)
#else
sprintf(str, fmt, va_alist)
@@ -64,7 +64,7 @@ sprintf(str, fmt, va_alist)
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = INT_MAX;
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);