mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
libafscp: Make _GetLocalSecurityObject krb5-only
If we are compiled without kerberos support, afscp_util.c generates a warning, breaking the build when built with --enable-checking: CC .../src/libafscp/afscp_util.o .../src/libafscp/afscp_util.c:152:1: error: '_GetLocalSecurityObject' defined but not used [-Werror=unused-function] To avoid this, don't define _GetLocalSecurityObject if we don't have HAVE_KERBEROS. Change-Id: I2515402e19c6c44ad70de6e6ab16c39d61334ab4 Reviewed-on: https://gerrit.openafs.org/15818 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
This commit is contained in:
parent
7f188ff32d
commit
64a3f42c62
@ -148,6 +148,7 @@ _GetNullSecurityObject(struct afscp_cell *cell)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef HAVE_KERBEROS
|
||||
static int
|
||||
_GetLocalSecurityObject(struct afscp_cell *cell,
|
||||
char *aname, char *ainst)
|
||||
@ -209,6 +210,7 @@ _GetLocalSecurityObject(struct afscp_cell *cell,
|
||||
}
|
||||
return code;
|
||||
}
|
||||
#endif /* HAVE_KERBEROS */
|
||||
|
||||
int
|
||||
_GetSecurityObject(struct afscp_cell *cell)
|
||||
|
Loading…
Reference in New Issue
Block a user