summaryrefslogtreecommitdiffstats
path: root/usr.bin/compress
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-03-23 23:19:00 +0000
committerimp <imp@FreeBSD.org>2002-03-23 23:19:00 +0000
commit7535c05549167a070eade4bb6ecc239226494f93 (patch)
treeded521ab40047922e84e8a4fb5a9d5c7b767a81a /usr.bin/compress
parentc91815c7770dfdd086d53534b1ff6a1e463404b6 (diff)
downloadFreeBSD-src-7535c05549167a070eade4bb6ecc239226494f93.zip
FreeBSD-src-7535c05549167a070eade4bb6ecc239226494f93.tar.gz
unifdef -D__STDC__
Diffstat (limited to 'usr.bin/compress')
-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