Move local variable to avoid warning when compiled without GSSAPI.
authorMartin Pool <mbp@samba.org>
Mon, 14 Jan 2002 06:34:53 +0000 (06:34 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 14 Jan 2002 06:34:53 +0000 (06:34 +0000)
(This used to be commit 312c6d906e64d231ff3c2f37e61d752cc948ee7b)

source3/libads/ads_status.c

index a28fd7b67137832ae46e2549a3287d71b0697e65..d54ce9745aa03ad107d9dd740f6b584174ed3bfa 100644 (file)
@@ -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;