summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-06 08:08:18 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-06 08:08:18 +0000
commitb6be4775fee219846aa91ae5341a87d7b7d3494e (patch)
tree216f8742cc9a137792f8e9ea901aac8f8e8c9b72 /sys
parent49d79693e3b99c0b1c74d88b6ba8de6222afdd23 (diff)
-Wcast-qual cleanup
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_prf.c10
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 != '%')
;