summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-11-07 17:41:36 +0000
committerwollman <wollman@FreeBSD.org>1993-11-07 17:41:36 +0000
commitc1b92d6bad47f8c2ca5bd5d68fdad201868e0126 (patch)
tree1a47aed456583dc1f94b57848af6a7feb004a609 /sys/kern
parentfacbbe496cbc7e1626f928df414d55b8c243d83e (diff)
downloadFreeBSD-src-c1b92d6bad47f8c2ca5bd5d68fdad201868e0126.zip
FreeBSD-src-c1b92d6bad47f8c2ca5bd5d68fdad201868e0126.tar.gz
Made all header files idempotent and moved incorrect common data from
headers into a related source file. (This is the only change to locore.s). Also fixed pg() to be properly declared and use stdargs.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/tty_cons.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c
index 2e92a9c..6f76c4c 100644
--- a/sys/kern/tty_cons.c
+++ b/sys/kern/tty_cons.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
- * $Id: cons.c,v 1.3 1993/10/16 14:14:49 rgrimes Exp $
+ * $Id: cons.c,v 1.4 1993/10/18 14:21:48 davidg Exp $
*/
@@ -49,8 +49,9 @@
#include "sys/tty.h"
#include "sys/file.h"
#include "sys/conf.h"
+#include "machine/stdarg.h"
-#include "cons.h"
+#include "machine/cons.h"
/* XXX - all this could be autoconfig()ed */
int pccnprobe(), pccninit(), pccngetc(), pccnputc();
@@ -197,10 +198,12 @@ cnputc(c)
}
}
-pg(p,q,r,s,t,u,v,w,x,y,z) char *p; {
- printf(p,q,r,s,t,u,v,w,x,y,z);
- printf("\n>");
- return(cngetc());
+int
+pg(const char *p, ...) {
+ va_list args;
+ va_start(args, p);
+ printf("%r\n>", p, args);
+ return(cngetc());
}
OpenPOWER on IntegriCloud