s3: Make ads_ranged_search_internal static
authorVolker Lendecke <vl@samba.org>
Tue, 16 Nov 2010 18:18:56 +0000 (19:18 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 20 Nov 2010 13:42:44 +0000 (14:42 +0100)
source3/libads/ads_proto.h
source3/libads/ldap_utils.c

index b924034..6fbd3aa 100644 (file)
@@ -130,19 +130,6 @@ ADS_STATUS ads_ranged_search(ADS_STRUCT *ads,
                             const char *range_attr,
                             char ***strings,
                             size_t *num_strings);
-ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads,
-                                     TALLOC_CTX *mem_ctx,
-                                     int scope,
-                                     const char *base,
-                                     const char *filter,
-                                     const char **attrs,
-                                     void *args,
-                                     const char *range_attr,
-                                     char ***strings,
-                                     size_t *num_strings,
-                                     uint32 *first_usn,
-                                     int *num_retries,
-                                     bool *more_values);
 
 /* The following definitions come from libads/ndr.c  */
 
index 4ed78a0..ab77abd 100644 (file)
 #include "ads.h"
 
 #ifdef HAVE_LDAP
+
+static ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads,
+                                            TALLOC_CTX *mem_ctx,
+                                            int scope,
+                                            const char *base,
+                                            const char *filter,
+                                            const char **attrs,
+                                            void *args,
+                                            const char *range_attr,
+                                            char ***strings,
+                                            size_t *num_strings,
+                                            uint32 *first_usn,
+                                            int *num_retries,
+                                            bool *more_values);
+
 /*
   a wrapper around ldap_search_s that retries depending on the error code
   this is supposed to catch dropped connections and auto-reconnect
@@ -263,7 +278,7 @@ ADS_STATUS ads_ranged_search(ADS_STRUCT *ads,
        return status;
 }
 
-ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads, 
+static ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads,
                                      TALLOC_CTX *mem_ctx,
                                      int scope,
                                      const char *base,