diff options
author | bz <bz@FreeBSD.org> | 2014-04-17 14:15:53 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2014-04-17 14:15:53 +0000 |
commit | 528616608769c115c6f8572477a75ae670061871 (patch) | |
tree | af21b94fd5e086214d97e843c7e3aecaa738a0b8 /usr.bin | |
parent | 56709e11fdb30f0c957a277dbf774decbf9cca07 (diff) | |
download | FreeBSD-src-528616608769c115c6f8572477a75ae670061871.zip FreeBSD-src-528616608769c115c6f8572477a75ae670061871.tar.gz |
Stop casting the const char * to void * to char * to make compile more happy
after r264573.
Someone submit to: OpenBSD
MFC after: 13 days
X-MFC with: r264573
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/bc/scan.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l index 1bf08c6..cb1977a 100644 --- a/usr.bin/bc/scan.l +++ b/usr.bin/bc/scan.l @@ -348,7 +348,7 @@ bc_yyinput(char *buf, int maxlen) skipchars = 0; sigprocmask(SIG_SETMASK, &oset, NULL); if (num > maxlen) { - el_push(el, (char *)(void *)bp + maxlen); + el_push(el, bp + maxlen); num = maxlen; } memcpy(buf, bp, num); |