Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2014 14:15:54 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264609 - head/usr.bin/bc
Message-ID:  <201404171415.s3HEFs7e074848@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404171415.s3HEFs7e074848>