summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchip <chip>2005-04-06 18:57:25 +0000
committerchip <chip>2005-04-06 18:57:25 +0000
commitec55fd4158037ad06197bdfd4179d4946812925a (patch)
tree855efb7d51445c9f3bf9a0589a95b6a833aa4766
parent442c362b033ff30be49e162db8a57d8e375a6f1f (diff)
downloadnfs-utils-ec55fd4158037ad06197bdfd4179d4946812925a.tar.gz
nfs-utils-ec55fd4158037ad06197bdfd4179d4946812925a.tar.xz
nfs-utils-ec55fd4158037ad06197bdfd4179d4946812925a.zip
Don't use cast as lvalue
-rw-r--r--ChangeLog3
-rw-r--r--support/rpc/svc_auth_gss.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b1781b..fe9452e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-04-06 Chip Salzenberg <chip@pobox.com>
+ * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
+ an lvalue, as it is non-portable.
+
* support/nfs/exports.c (parseopts): Accept "acl" option to mean
~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
(putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
diff --git a/support/rpc/svc_auth_gss.c b/support/rpc/svc_auth_gss.c
index 02153f9..82b8d01 100644
--- a/support/rpc/svc_auth_gss.c
+++ b/support/rpc/svc_auth_gss.c
@@ -382,7 +382,7 @@ _svcauth_gss(struct svc_req *rqst, struct rpc_msg *msg, bool_t *no_dispatch)
return (AUTH_FAILED);
}
auth->svc_ah_ops = &svc_auth_gss_ops;
- SVCAUTH_PRIVATE(auth) = gd;
+ auth->svc_ah_private = (caddr_t)gd;
rqst->rq_xprt->xp_auth = auth;
}
else gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth);