From: Andrew Deason Date: Tue, 7 Dec 2010 22:04:11 +0000 (-0600) Subject: auth: Move to a named constant X-Git-Tag: upstream/1.8.0_pre1^2~4378 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c1b71c4e7b4575d6a5b00214bc42a682fc7286eb;p=packages%2Fo%2Fopenafs.git auth: Move to a named constant Add a #define for "" and related values. Use them. Change-Id: I0e1d374403a0ad20be6a2839e37a5894b15446cd Reviewed-on: http://gerrit.openafs.org/3482 Reviewed-by: Simon Wilkinson Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/auth/userok.c b/src/auth/userok.c index f9e9c9371..52dd467aa 100644 --- a/src/auth/userok.c +++ b/src/auth/userok.c @@ -48,6 +48,9 @@ #include "keys.h" #include "afs/audit.h" +#define AFS_NOAUTH_NAME "" +#define AFS_NOAUTH_LEN (sizeof(AFS_NOAUTH_NAME)-1) + static int ParseLine(char *buffer, struct rx_identity *user); static void @@ -744,7 +747,8 @@ afsconf_SuperIdentity(struct afsconf_dir *adir, struct rx_call *acall, if (afsconf_GetNoAuthFlag(adir)) { if (identity) - *identity = rx_identity_new(RX_ID_KRB4, "", "", 8); + *identity = rx_identity_new(RX_ID_KRB4, AFS_NOAUTH_NAME, + AFS_NOAUTH_NAME, AFS_NOAUTH_LEN); UNLOCK_GLOBAL_MUTEX; return 1; }