svn commit: r264609 - head/usr.bin/bc
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Apr 17 14:15:54 UTC 2014
Author: bz
Date: Thu Apr 17 14:15:53 2014
New Revision: 264609
URL: http://svnweb.freebsd.org/changeset/base/264609
Log:
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
Modified:
head/usr.bin/bc/scan.l
Modified: head/usr.bin/bc/scan.l
==============================================================================
--- head/usr.bin/bc/scan.l Thu Apr 17 13:57:37 2014 (r264608)
+++ head/usr.bin/bc/scan.l Thu Apr 17 14:15:53 2014 (r264609)
@@ -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);
More information about the svn-src-all
mailing list