summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-14 06:34:53 +0000
committerMartin Pool <mbp@samba.org>2002-01-14 06:34:53 +0000
commit6059f407637327b01ce008dd09634e4a3bbf8f1b (patch)
treeaf06d5b5342a6ab23eb925a599dde9704f2698d1
parent1b6c848c1063a2a99d0d7515a6b0af61e7c59cf3 (diff)
downloadsamba-6059f407637327b01ce008dd09634e4a3bbf8f1b.tar.gz
samba-6059f407637327b01ce008dd09634e4a3bbf8f1b.tar.bz2
samba-6059f407637327b01ce008dd09634e4a3bbf8f1b.zip
Move local variable to avoid warning when compiled without GSSAPI.
(This used to be commit 312c6d906e64d231ff3c2f37e61d752cc948ee7b)
-rw-r--r--source3/libads/ads_status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c
index a28fd7b671..d54ce9745a 100644
--- a/source3/libads/ads_status.c
+++ b/source3/libads/ads_status.c
@@ -52,7 +52,6 @@ NTSTATUS ads_ntstatus(ADS_STATUS rc)
*/
const char *ads_errstr(ADS_STATUS status)
{
- uint32 minor;
int msg_ctx;
static char *ret;
@@ -73,6 +72,8 @@ const char *ads_errstr(ADS_STATUS status)
#ifdef HAVE_GSSAPI
case ADS_ERROR_GSS:
{
+ uint32 minor;
+
gss_buffer_desc msg1, msg2;
msg1.value = NULL;
msg2.value = NULL;