net/coda6_client: unbreak with libc++ 3.9

vol_cml.cc:3621:10: error: assigning to 'char *' from incompatible type 'const char *'
    comp = strrchr(hook->name, '/') + 1;
         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich 2017-02-01 12:28:40 +00:00
parent 4234e8e865
commit c9978367f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433016

View file

@ -0,0 +1,12 @@
--- coda-src/venus/vol_cml.cc.orig 2008-10-06 16:52:54 UTC
+++ coda-src/venus/vol_cml.cc
@@ -3606,7 +3606,8 @@ static int WriteLinks(struct DirEntry *d
{
VnodeId vnode;
Unique_t vunique;
- char *name = de->name, *comp;
+ char *name = de->name;
+ const char *comp;
size_t prefixlen;
char namebuf[CODA_MAXPATHLEN];
struct WriteLinksHook *hook = (struct WriteLinksHook *)arg;