summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-05-17 05:24:08 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-05-20 21:54:06 +1000
commit373448804ba02378ab0957b0f80a6dd28910a261 (patch)
tree6b47214c94d562bc2a68a8cf9346a9b9ab5abc53 /source4/dsdb/samdb/ldb_modules
parent4cc3d065bca7ffe2b8bae58c8e2c4387add3ad52 (diff)
downloadsamba-373448804ba02378ab0957b0f80a6dd28910a261.tar.gz
samba-373448804ba02378ab0957b0f80a6dd28910a261.tar.bz2
samba-373448804ba02378ab0957b0f80a6dd28910a261.zip
Fix more unused vars
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/ranged_results.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/ranged_results.c b/source4/dsdb/samdb/ldb_modules/ranged_results.c
index 3b82de8744..60d7503e5d 100644
--- a/source4/dsdb/samdb/ldb_modules/ranged_results.c
+++ b/source4/dsdb/samdb/ldb_modules/ranged_results.c
@@ -95,7 +95,7 @@ static int rr_search_callback(struct ldb_request *req, struct ldb_reply *ares)
for (i = 0; ac->req->op.search.attrs[i]; i++) {
char *p, *new_attr;
const char *end_str;
- unsigned int start, end, orig_num_values;
+ unsigned int start, end;
struct ldb_message_element *el;
struct ldb_val *orig_values;
@@ -146,7 +146,6 @@ static int rr_search_callback(struct ldb_request *req, struct ldb_reply *ares)
el->values = NULL;
} else {
orig_values = el->values;
- orig_num_values = el->num_values;
if ((start + end < start) || (start + end < end)) {
ldb_asprintf_errstring(ldb,