summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-16 19:18:56 +0100
committerVolker Lendecke <vl@samba.org>2010-11-20 14:42:44 +0100
commit491fdb24e44c0b4ba6004ce9f4dc071f1632d5d2 (patch)
tree4f2b33a4e571b99f9f884ea5ba901485001d4e79
parent365116ea921be0d549aebae65aa2e097108e6917 (diff)
downloadsamba-491fdb24e44c0b4ba6004ce9f4dc071f1632d5d2.tar.gz
samba-491fdb24e44c0b4ba6004ce9f4dc071f1632d5d2.tar.bz2
samba-491fdb24e44c0b4ba6004ce9f4dc071f1632d5d2.zip
s3: Make ads_ranged_search_internal static
-rw-r--r--source3/libads/ads_proto.h13
-rw-r--r--source3/libads/ldap_utils.c17
2 files changed, 16 insertions, 14 deletions
diff --git a/source3/libads/ads_proto.h b/source3/libads/ads_proto.h
index b9240346f6..6fbd3aa13f 100644
--- a/source3/libads/ads_proto.h
+++ b/source3/libads/ads_proto.h
@@ -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 */
diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c
index 4ed78a0aad..ab77abdd16 100644
--- a/source3/libads/ldap_utils.c
+++ b/source3/libads/ldap_utils.c
@@ -24,6 +24,21 @@
#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,