-/* $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 $ */
/*-
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 != '%')
;
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 != '%')
;