diff options
author | cy <cy@FreeBSD.org> | 2016-11-28 07:20:24 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2016-11-28 07:20:24 +0800 |
commit | 86cabdfffd77fc87393752f85543fac889018a4c (patch) | |
tree | f6cabb30364c0171c1e3ca5a488af3a62cf0cc14 /print | |
parent | 563cdd6b371ac238e452825614aaf58bde124d95 (diff) | |
download | freebsd-ports-gnome-86cabdfffd77fc87393752f85543fac889018a4c.tar.gz freebsd-ports-gnome-86cabdfffd77fc87393752f85543fac889018a4c.tar.zst freebsd-ports-gnome-86cabdfffd77fc87393752f85543fac889018a4c.zip |
Fix build under clang 3.9.0 (in -CURRENT).
PR: 214649
Diffstat (limited to 'print')
-rw-r--r-- | print/xpp/files/patch-xpp.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/print/xpp/files/patch-xpp.cxx b/print/xpp/files/patch-xpp.cxx index e972adc2464b..b935f6fddf70 100644 --- a/print/xpp/files/patch-xpp.cxx +++ b/print/xpp/files/patch-xpp.cxx @@ -1,5 +1,5 @@ --- xpp.cxx.orig 2004-12-06 11:00:04.000000000 -0800 -+++ xpp.cxx 2016-11-08 12:49:34.251265000 -0800 ++++ xpp.cxx 2016-11-27 15:17:24.389315000 -0800 @@ -30,6 +30,7 @@ * Include necessary headers... */ @@ -17,6 +17,15 @@ /* * Parse options and send files for printing. +@@ -168,7 +169,7 @@ + { + char *tmp; + +- if ((tmp = strchr(dest,'/'))) { ++ if ((tmp = (char *)strchr(dest,'/'))) { + tmp[0] = '\0'; + instance = tmp + 1; + } @@ -651,7 +652,7 @@ #endif #endif // !WIN32 |