summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-28 17:03:12 +0000
committeralfred <alfred@FreeBSD.org>2002-05-28 17:03:12 +0000
commit1ee311b26d7122f860fe940db6ce46968981a9a3 (patch)
tree96c195652047b452e756960d6bdfc6786443c564 /lib/libkvm
parentae40c00e1724fe7d6584623e3a953b6b44fc741f (diff)
downloadFreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.zip
FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.tar.gz
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index dfc21e4..f0a6352 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -81,11 +81,7 @@ kvm_geterr(kd)
return (kd->errbuf);
}
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
/*
* Report an error using printf style arguments. "program" is kd->program
@@ -94,22 +90,11 @@ kvm_geterr(kd)
* generate tons of error messages when trying to access bogus pointers).
*/
void
-#if __STDC__
_kvm_err(kvm_t *kd, const char *program, const char *fmt, ...)
-#else
-_kvm_err(kd, program, fmt, va_alist)
- kvm_t *kd;
- char *program, *fmt;
- va_dcl
-#endif
{
va_list ap;
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
if (program != NULL) {
(void)fprintf(stderr, "%s: ", program);
(void)vfprintf(stderr, fmt, ap);
@@ -122,23 +107,12 @@ _kvm_err(kd, program, fmt, va_alist)
}
void
-#if __STDC__
_kvm_syserr(kvm_t *kd, const char *program, const char *fmt, ...)
-#else
-_kvm_syserr(kd, program, fmt, va_alist)
- kvm_t *kd;
- char *program, *fmt;
- va_dcl
-#endif
{
va_list ap;
int n;
-#if __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
if (program != NULL) {
(void)fprintf(stderr, "%s: ", program);
(void)vfprintf(stderr, fmt, ap);
OpenPOWER on IntegriCloud