ports/security/sfs/files/patch-sfsmisc_afsnode.h
Alexey Dokuchaev 62872b88bd Fix code so it is favored by both GCCs (2.x and 3.x), and unbreak the build.
Approved by:	fjoe (mentor, implicit)
		maintainer timeout
2004-10-20 12:33:37 +00:00

11 lines
447 B
C

--- sfsmisc/afsnode.h.orig Mon Oct 11 16:43:34 2004
+++ sfsmisc/afsnode.h Mon Oct 11 16:39:35 2004
@@ -168,7 +168,7 @@
void mkfattr3 (fattr3 *, sfs_aid aid);
void setres (nfsstat err);
void setres (nfspath path);
- str readlink () const { return res.status ? str (NULL) : *res.data; }
+ str readlink () const { return res.status ? str (NULL) : str (*res.data); }
bool resset () { return resok; }
void nfs_readlink (svccb *sbp);