diff options
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 626522063ea..1ad61748f6b 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.14 1996/11/29 04:53:39 kstailey Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.15 1996/12/06 08:08:17 niklas Exp $ */ /* $NetBSD: subr_prf.c,v 1.25 1996/04/22 01:38:46 christos Exp $ */ /*- @@ -404,13 +404,13 @@ kprintf(fmt, flags, tp, ap) for (;;) { padc = ' '; width = 0; - while ((ch = *(u_char *)fmt++) != '%') { + while ((ch = *(const u_char *)fmt++) != '%') { if (ch == '\0') return; putchar(ch, flags, tp); } lflag = 0; -reswitch: switch (ch = *(u_char *)fmt++) { +reswitch: switch (ch = *(const u_char *)fmt++) { case '\0': while(*--fmt != '%') ; @@ -570,12 +570,12 @@ vsprintf(buf, cfmt, ap) for (bp = buf; ; ) { padc = ' '; width = 0; - while ((ch = *(u_char *)fmt++) != '%') + while ((ch = *(const u_char *)fmt++) != '%') if ((*bp++ = ch) == '\0') return ((bp - buf) - 1); lflag = 0; -reswitch: switch (ch = *(u_char *)fmt++) { +reswitch: switch (ch = *(const u_char *)fmt++) { case '\0': while(*--fmt != '%') ; |