Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 12:26:06 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433011 - head/games/openbubbles/files
Message-ID:  <201702011226.v11CQ6X9063337@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 12:26:06 2017
New Revision: 433011
URL: https://svnweb.freebsd.org/changeset/ports/433011

Log:
  games/openbubbles: unbreak with libc++ 3.9
  
  BFont.cpp:322:14: error: assigning to 'char *' from incompatible type 'const char *'
      while ((p=strchr(&text[pos+1],SPACE)) != NULL) {
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  BFont.cpp:362:19: error: assigning to 'char *' from incompatible type 'const char *'
                  p = strstr(&text[pos+1]," ");
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~
  
  Reported by:	pkg-fallout

Added:
  head/games/openbubbles/files/
  head/games/openbubbles/files/patch-src_BFont.cpp   (contents, props changed)

Added: head/games/openbubbles/files/patch-src_BFont.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/openbubbles/files/patch-src_BFont.cpp	Wed Feb  1 12:26:06 2017	(r433011)
@@ -0,0 +1,20 @@
+--- src/BFont.cpp.orig	2005-02-27 14:29:13 UTC
++++ src/BFont.cpp
+@@ -314,7 +314,7 @@ int BFont_TextWidthFont(BFont_Info *Font
+ /* counts the spaces of the strings */
+ static int count (const char *text)
+ {
+-    char *p = NULL;
++    const char *p = NULL;
+     int pos = -1;
+     int i   = 0;
+ 
+@@ -339,7 +339,7 @@ void BFont_JustifiedPutStringFont(SDL_Su
+     int dif;
+ 
+     char *strtmp;
+-    char *p;
++    const char *p;
+     int pos = -1;
+     int xpos = 0;
+ 



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