mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
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:
parent
107074dfec
commit
43b001dc46
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264609
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue