From 4d44764c157b1310de81e010975ae5867028fa5b Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 19 Aug 2004 02:07:10 +0000 Subject: [PATCH] butc-xbsa-cleanup-20040818 make things compile when xbas is defined. --- src/butc/butc_xbsa.h | 22 ++++++++++++++++++++++ src/butc/tcmain.c | 15 +-------------- src/butc/tcprocs.c | 14 -------------- 3 files changed, 23 insertions(+), 28 deletions(-) diff --git a/src/butc/butc_xbsa.h b/src/butc/butc_xbsa.h index 63c14a5da1..1c4a748ee0 100644 --- a/src/butc/butc_xbsa.h +++ b/src/butc/butc_xbsa.h @@ -123,4 +123,26 @@ extern afs_int32 xbsa_DeleteObject(struct butx_transactionInfo *info, char *objectSpaceName, char *pathName); #endif /*xbsa */ + + +/* XBSA Global Parameters */ + +#ifdef XBSA_TCMAIN +#define XBSA_EXT +#else +#define XBSA_EXT extern +#endif + +XBSA_EXT afs_int32 xbsaType; +#ifdef xbsa +XBSA_EXT struct butx_transactionInfo butxInfo; + +#define rpc_c_protect_level_default 0 +XBSA_EXT afs_uint32 dumpRestAuthnLevel; +XBSA_EXT char *xbsaObjectOwner; +XBSA_EXT char *appObjectOwner; +XBSA_EXT char *adsmServerName; +XBSA_EXT char *xbsaSecToken; +XBSA_EXT char *xbsalGName; +#endif /*xbsa*/ #endif /* OPENAFS_BUTC_XBSA_H */ diff --git a/src/butc/tcmain.c b/src/butc/tcmain.c index 1369978be3..d804794f69 100644 --- a/src/butc/tcmain.c +++ b/src/butc/tcmain.c @@ -55,6 +55,7 @@ RCSID #include "error_macros.h" #include #include "afs/butx.h" +#define XBSA_TCMAIN #include "butc_xbsa.h" #define N_SECURITY_OBJECTS 3 @@ -92,20 +93,6 @@ char *closecallout; char *restoretofile; int forcemultiple; -/* XBSA Global Parameters */ -afs_int32 xbsaType; -#ifdef xbsa -struct butx_transactionInfo butxInfo; - -#define rpc_c_protect_level_default 0 -afs_uint32 dumpRestAuthnLevel = rpc_c_protect_level_default; -char *xbsaObjectOwner; -char *appObjectOwner; -char *adsmServerName; -char *xbsaSecToken; -char *xbsalGName; -#endif - int maxpass; #define PASSESMIN 1 #define PASSESMAX 10 diff --git a/src/butc/tcprocs.c b/src/butc/tcprocs.c index 5c2467d58c..f451f504f1 100644 --- a/src/butc/tcprocs.c +++ b/src/butc/tcprocs.c @@ -51,20 +51,6 @@ callPermitted(call) return 1; } -/* XBSA Global Parameters */ -afs_int32 xbsaType; -#ifdef xbsa -struct butx_transactionInfo butxInfo; - -#define rpc_c_protect_level_default 0 -afs_uint32 dumpRestAuthnLevel = rpc_c_protect_level_default; -char *xbsaObjectOwner; -char *appObjectOwner; -char *adsmServerName; -char *xbsaSecToken; -char *xbsalGName; -#endif - /* ------------------------- * butc - interface routines - alphabetic order * -------------------------