From: Andrew Deason Date: Wed, 15 Sep 2010 18:40:19 +0000 (-0400) Subject: libafs: Fix compile errors in afs_nfsclnt.c X-Git-Tag: upstream/1.8.0_pre1^2~4821 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b6d478c2159bb1baed034fc031a43742d5db0298;p=packages%2Fo%2Fopenafs.git libafs: Fix compile errors in afs_nfsclnt.c - 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 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_nfsclnt.c b/src/afs/afs_nfsclnt.c index 612a97366..e13f2c7e5 100644 --- a/src/afs/afs_nfsclnt.c +++ b/src/afs/afs_nfsclnt.c @@ -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;