libafs: Fix compile errors in afs_nfsclnt.c
authorAndrew Deason <adeason@sinenomine.net>
Wed, 15 Sep 2010 18:40:19 +0000 (14:40 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 20 Sep 2010 05:31:23 +0000 (22:31 -0700)
 - tokenUnion is a union, not a struct

 - 'struct rxkadToken' typo

 - 'tokenPtr' not 'tokenptr'

Change-Id: I7e0fa4f2d34ba4bd68345e9625f40d1d7301411e
Reviewed-on: http://gerrit.openafs.org/2764
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/afs/afs_nfsclnt.c

index 612a973..e13f2c7 100644 (file)
@@ -306,8 +306,8 @@ afs_nfsclient_getcreds(struct unixuser *au)
     struct nfsclientpag *np = (struct nfsclientpag *)(au->exporter);
     struct rx_securityClass *csec;
     struct rx_connection *tconn;
-    struct tokenUnion *tokenPtr;
-    struct rkxadToken *token;
+    union tokenUnion *tokenPtr;
+    struct rxkadToken *token;
     SysNameList tsysnames;
     CredInfos tcreds;
     CredInfo *tcred;
@@ -384,8 +384,8 @@ afs_nfsclient_getcreds(struct unixuser *au)
 
        /* Add a new rxkad token. Using the afs_AddRxkadToken interface
         * would require another copy, so we do this the hard way */
-       tokenptr = afs_AddToken(&tu->tokens, 2);
-       token = &tokenptr->rxkad;
+       tokenPtr = afs_AddToken(&tu->tokens, 2);
+       token = &tokenPtr->rxkad;
        token->ticket = tcred->st.st_val;
        token->ticketLen = tcred->st.st_len;