Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2016 03:45:14 +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: r426308 - head/deskutils/ical/files
Message-ID:  <201611180345.uAI3jEGZ071809@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Nov 18 03:45:14 2016
New Revision: 426308
URL: https://svnweb.freebsd.org/changeset/ports/426308

Log:
  deskutils/ical: unbreak with libc++ 3.9
  
  calfile.C:63:11: error: cannot initialize a variable of type 'char *' with an rvalue of type
        'const char *'
      char* lastSlash = strrchr(name, '/');
            ^           ~~~~~~~~~~~~~~~~~~
  PR:		212343
  Reported by:	antoine (via exp-run)

Added:
  head/deskutils/ical/files/patch-calendar_calfile.C   (contents, props changed)

Added: head/deskutils/ical/files/patch-calendar_calfile.C
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/ical/files/patch-calendar_calfile.C	Fri Nov 18 03:45:14 2016	(r426308)
@@ -0,0 +1,11 @@
+--- calendar/calfile.C.orig	1997-05-24 00:23:52 UTC
++++ calendar/calfile.C
+@@ -60,7 +60,7 @@ CalFile::CalFile(int ro, const char* nam
+     backupName = tmp;
+ 
+     // Get directory name for access checks
+-    char* lastSlash = strrchr(name, '/');
++    const char* lastSlash = strrchr(name, '/');
+     if (lastSlash == 0) {
+ 	/* Calendar is in current directory */
+ 	tmp = new char[3];



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