summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2018-04-17 11:03:26 +0200
committerDavid Seifert <soap@gentoo.org>2018-04-17 11:08:11 +0200
commita811a7aba37e687265579dc430aa3bd934be571a (patch)
tree6dbbe0e58514fec2450fd05af47e6cb7be53bcad /sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch
parentnet-libs/davix: only depend on sys-apps/util-linux on Linux (diff)
downloadgentoo-a811a7aba37e687265579dc430aa3bd934be571a.tar.gz
gentoo-a811a7aba37e687265579dc430aa3bd934be571a.tar.bz2
gentoo-a811a7aba37e687265579dc430aa3bd934be571a.zip
sci-electronics/vbs: Port to EAPI 6
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch')
-rw-r--r--sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch b/sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch
new file mode 100644
index 000000000000..796aba52bb76
--- /dev/null
+++ b/sci-electronics/vbs/files/vbs-1.4.0-const_cast.patch
@@ -0,0 +1,11 @@
+--- a/common/scp_tab.cc
++++ b/common/scp_tab.cc
+@@ -148,7 +148,7 @@
+ nm.replace(0,top.length()+1,"");
+ const char * n = nm.c_str();
+ size_t full, sub,diff;
+- char * last_dot = strrchr(n,'.');
++ char * last_dot = const_cast<char*>(strrchr(n,'.'));
+ char * ret = 0;
+ if (last_dot != 0)
+ {