diff options
author | bde <bde@FreeBSD.org> | 1996-08-31 16:52:44 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-08-31 16:52:44 +0000 |
commit | 070eb30ca675029e79f93333b60287527efc0906 (patch) | |
tree | d0ca99d3f53a0fe4ea60e83d05baa8825fdd8cc4 /sys/kern/subr_prf.c | |
parent | db0af2c4dc8e05c93d178bf31653024d244398bb (diff) | |
download | FreeBSD-src-070eb30ca675029e79f93333b60287527efc0906.zip FreeBSD-src-070eb30ca675029e79f93333b60287527efc0906.tar.gz |
Fixed the easy cases of const poisoning in the kernel. Cosmetic.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index bd6ff58..10c5770 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 - * $Id: subr_prf.c,v 1.37 1996/05/09 18:58:06 gpalmer Exp $ + * $Id: subr_prf.c,v 1.38 1996/08/19 20:07:07 julian Exp $ */ #include "opt_ddb.h" @@ -390,14 +390,14 @@ kvprintf(char const *fmt, void (*func)(int, void*), void *arg, int radix, va_lis for (;;) { padc = ' '; width = 0; - while ((ch = *(u_char *)fmt++) != '%') { + while ((ch = (u_char)*fmt++) != '%') { if (ch == '\0') return retval; PCHAR(ch); } lflag = 0; ladjust = 0; sharpflag = 0; neg = 0; sign = 0; dot = 0; dwidth = 0; -reswitch: switch (ch = *(u_char *)fmt++) { +reswitch: switch (ch = (u_char)*fmt++) { case '.': dot = 1; goto reswitch; |