summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-13 16:19:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-13 16:19:27 +0000
commitf781e30eaa3e0bce99e2ba0cf800c1462d44ab76 (patch)
tree205326ffa1376109c2757c8d345d90250e27ba08
parent9602c060d2764c08bfdcc2a5b695181b6024346f (diff)
add extern debug decl for DEBUG enabled code
-rw-r--r--sys/stand/boot/cmd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c
index 586359fde64..52b4c909b4b 100644
--- a/sys/stand/boot/cmd.c
+++ b/sys/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.41 1998/06/23 05:14:49 mickey Exp $ */
+/* $OpenBSD: cmd.c,v 1.42 1998/07/13 16:19:26 mickey Exp $ */
/*
* Copyright (c) 1997,1998 Michael Shalayeff
@@ -219,6 +219,9 @@ readline(buf, to)
register char *buf;
int to;
{
+#ifdef DEBUG
+ extern int debug;
+#endif
register char *p = buf, *pe = buf, ch;
register time_t tt;
@@ -227,7 +230,7 @@ readline(buf, to)
tt = getsecs() + to;
#ifdef DEBUG
if (debug > 2)
- printf ("readline: timeout(%d) at %lu\n", to, tt);
+ printf ("readline: timeout(%d) at %u\n", to, tt);
#endif
while (getsecs() < tt && !cnischar())
;