diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-23 23:54:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-23 23:54:29 +0000 |
commit | ecd6f9dca4eccf5c882b97c60ae96a03d1cae789 (patch) | |
tree | 238298d3ef3a8c282fe15ac2de32c378205fe04b /sys/kern | |
parent | 9513934bb36613056f777e4f63a94c5fa9aea64e (diff) |
make printf/addlog return 0, for compat to userland
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_disk.c | 2 | ||||
-rw-r--r-- | sys/kern/subr_prf.c | 8 |
2 files changed, 6 insertions, 4 deletions
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); } /* |