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
This commit is contained in:
Bjoern A. Zeeb 2014-04-17 14:15:53 +00:00
parent 107074dfec
commit 43b001dc46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264609

View file

@ -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);