summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/compress/compress.c31
1 files changed, 3 insertions, 28 deletions
diff --git a/usr.bin/compress/compress.c b/usr.bin/compress/compress.c
index 449ac95..bcdfd69 100644
--- a/usr.bin/compress/compress.c
+++ b/usr.bin/compress/compress.c
@@ -52,17 +52,12 @@ __FBSDID("$FreeBSD$");
#include <err.h>
#include <errno.h>
+#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
#include "zopen.h"
void compress(const char *, const char *, int);
@@ -413,42 +408,22 @@ usage(iscompress)
}
void
-#if __STDC__
cwarnx(const char *fmt, ...)
-#else
-cwarnx(fmt, va_alist)
- int eval;
- const char *fmt;
- va_dcl
-#endif
{
va_list ap;
-#if __STDC__
+
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
vwarnx(fmt, ap);
va_end(ap);
eval = 1;
}
void
-#if __STDC__
cwarn(const char *fmt, ...)
-#else
-cwarn(fmt, va_alist)
- int eval;
- const char *fmt;
- va_dcl
-#endif
{
va_list ap;
-#if __STDC__
+
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
vwarn(fmt, ap);
va_end(ap);
eval = 1;
OpenPOWER on IntegriCloud