]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Don't use cast as lvalue
authorchip <chip>
Wed, 6 Apr 2005 18:57:25 +0000 (18:57 +0000)
committerchip <chip>
Wed, 6 Apr 2005 18:57:25 +0000 (18:57 +0000)
ChangeLog
support/rpc/svc_auth_gss.c

index 2b1781b65f0feeff8fcdf4cd2e1ae03d159a50ef..fe9452eedbc3396ee7ca51eb3e3ea00e9f322710 100644 (file)
--- 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
index 02153f9a6b317f7c0b3e3b61f75b219aa5a0b3f8..82b8d01af48ed5556b3140bcb24a5e931ff37f2e 100644 (file)
@@ -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);