From ecd6f9dca4eccf5c882b97c60ae96a03d1cae789 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 23 Jul 1996 23:54:29 +0000 Subject: make printf/addlog return 0, for compat to userland --- sys/kern/subr_disk.c | 2 +- sys/kern/subr_prf.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 5f6880467cc..dc158928dd2 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -210,7 +210,7 @@ diskerr(bp, dname, what, pri, blkdone, lp) register struct disklabel *lp; { int unit = dkunit(bp->b_dev), part = dkpart(bp->b_dev); - register void (*pr) __P((const char *, ...)); + register int (*pr) __P((const char *, ...)); char partname = 'a' + part; int sn; diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index b37be3bf15b..c6d49dfeda6 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.8 1996/07/19 23:13:39 dm Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.9 1996/07/23 23:54:19 deraadt Exp $ */ /* $NetBSD: subr_prf.c,v 1.25 1996/04/22 01:38:46 christos Exp $ */ /*- @@ -289,7 +289,7 @@ logpri(level) putchar('>', TOLOG, NULL); } -void +int #ifdef __STDC__ addlog(const char *fmt, ...) #else @@ -312,9 +312,10 @@ addlog(fmt, va_alist) va_end(ap); } logwakeup(); + return (0); } -void +int #ifdef __STDC__ printf(const char *fmt, ...) #else @@ -334,6 +335,7 @@ printf(fmt, va_alist) if (!panicstr) logwakeup(); consintr = savintr; /* reenable interrupts */ + return (0); } /* -- cgit v1.2.3