s3-winbind: Remove unused bool "local"
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Mon, 6 Feb 2012 18:18:29 +0000 (11:18 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 6 Feb 2012 22:27:48 +0000 (23:27 +0100)
"local" is always False, so simply remove it and the if statement
checking its value.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Feb  6 23:27:48 CET 2012 on sn-devel-104

source3/winbindd/idmap_ad.c

index e19bf6893fa384ab508be5270d86f3950d5fcd67..bfe7d4b91b5d19c956281cdeb40521520866d3d2 100644 (file)
@@ -63,7 +63,6 @@ static ADS_STATUS ad_idmap_cached_connection_internal(struct idmap_domain *dom)
 {
        ADS_STRUCT *ads;
        ADS_STATUS status;
-       bool local = False;
        fstring dc_name;
        struct sockaddr_storage dc_ip;
        struct idmap_ad_context *ctx;
@@ -101,10 +100,8 @@ static ADS_STATUS ad_idmap_cached_connection_internal(struct idmap_domain *dom)
                }
        }
 
-       if (!local) {
-               /* we don't want this to affect the users ccache */
-               setenv("KRB5CCNAME", WINBIND_CCACHE_NAME, 1);
-       }
+       /* we don't want this to affect the users ccache */
+       setenv("KRB5CCNAME", WINBIND_CCACHE_NAME, 1);
 
        /*
         * At this point we only have the NetBIOS domain name.