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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"