summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c4
-rw-r--r--libexec/rtld-aout/rtld.c25
2 files changed, 2 insertions, 27 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index decc31b..2736946 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -98,11 +98,7 @@ static const char rcsid[] =
#include "pathnames.h"
#include "extern.h"
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
static char version[] = "Version 6.00LS";
#undef main
diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c
index 6769fa1..1d0f2bd 100644
--- a/libexec/rtld-aout/rtld.c
+++ b/libexec/rtld-aout/rtld.c
@@ -51,11 +51,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <link.h>
@@ -2293,19 +2289,11 @@ die __P((void))
* Generate an error message that can be later be retrieved via dlerror.
*/
static void
-#if __STDC__
generror(char *fmt, ...)
-#else
-generror(fmt, va_alist)
-char *fmt;
-#endif
{
va_list ap;
-#if __STDC__
+
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
vsnprintf (dlerror_buf, DLERROR_BUF_SIZE, fmt, ap);
dlerror_msg = dlerror_buf;
@@ -2313,21 +2301,12 @@ char *fmt;
}
void
-#if __STDC__
xprintf(char *fmt, ...)
-#else
-xprintf(fmt, va_alist)
-char *fmt;
-#endif
{
char buf[256];
va_list ap;
-#if __STDC__
- va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
+ va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
(void)write(STDOUT_FILENO, buf, strlen(buf));
va_end(ap);
OpenPOWER on IntegriCloud