summaryrefslogtreecommitdiff
path: root/sys/arch/amiga
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-05 22:32:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-09-05 22:32:47 +0000
commit772191eebf6a62b3fe9de2482c910de8c79000d5 (patch)
treeeea109f48afccf4e7cab1ea695e65fec36d1cf5e /sys/arch/amiga
parenta30f0def118756a387cba2c5eac41a702277da77 (diff)
make sure that va_start() has matching va_end()
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r--sys/arch/amiga/stand/device-streams/util.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/amiga/stand/device-streams/util.c b/sys/arch/amiga/stand/device-streams/util.c
index 360ece26752..3275be828cd 100644
--- a/sys/arch/amiga/stand/device-streams/util.c
+++ b/sys/arch/amiga/stand/device-streams/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.2 2001/07/04 08:44:59 niklas Exp $ */
+/* $OpenBSD: util.c,v 1.3 2001/09/05 22:32:38 deraadt Exp $ */
/* --------------------------------------------------
| NAME
@@ -236,6 +236,7 @@ ask_bool (int def, int other, char *f, ...)
va_start (ap, f);
vfprintf (mout, f, ap);
fprintf (mout, "? [%lc%lc]:",toupper (def),tolower (other));
+ va_end (ap);
fflush (mout);
if (fgets (buffer, 18, min)) {
char *s = stripws (buffer);
@@ -287,6 +288,7 @@ verbose_message (char *f, ...)
va_start (ap, f);
vfprintf (mout, f, ap);
fprintf (mout, "\n");
+ va_end (ap);
}
}
@@ -299,6 +301,7 @@ debug_message (char *f, ...)
fprintf (mout, "debug: ");
vfprintf (mout, f, ap);
fprintf (mout, "\n");
+ va_end (ap);
}
}
@@ -311,6 +314,7 @@ verbose_debug_message (char *f, ...)
fprintf (mout, "debug: ");
vfprintf (mout, f, ap);
fprintf (mout, "\n");
+ va_end (ap);
}
}
@@ -321,6 +325,7 @@ message (char *f, ...)
va_start (ap, f);
vfprintf (mout, f, ap);
fprintf (mout, "\n");
+ va_end (ap);
}
void
@@ -331,6 +336,7 @@ warn_message (char *f, ...)
fprintf (mout, "warn: ");
vfprintf (mout, f, ap);
fprintf (mout, "\n");
+ va_end (ap);
}
void