summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb_parse.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-10 16:48:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:50:03 -0500
commit4d1c5a023cf6680474bd8d8be73f576d155cfe81 (patch)
tree4d317119eca7f5f273d4027c1f08fe5665ddbd1e /source4/lib/ldb/common/ldb_parse.c
parent2b7d93265635f2e4cfc8b72f73a932d44821d371 (diff)
downloadsamba-4d1c5a023cf6680474bd8d8be73f576d155cfe81.tar.gz
samba-4d1c5a023cf6680474bd8d8be73f576d155cfe81.tar.bz2
samba-4d1c5a023cf6680474bd8d8be73f576d155cfe81.zip
r12829: fix ldb headers, to not include '<...>' files in .c files
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later. metze (This used to be commit 380938e97f31c7860aed1e73cc0110c6e17b472e)
Diffstat (limited to 'source4/lib/ldb/common/ldb_parse.c')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index 25e4b727df..52e7522b85 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -42,9 +42,7 @@
*/
#include "includes.h"
-#include "ldb/include/ldb.h"
-#include <ctype.h>
-
+#include "ldb/include/includes.h"
/*
a filter is defined by:
@@ -135,7 +133,7 @@ char *ldb_binary_encode(void *mem_ctx, struct ldb_val val)
char *ldb_binary_encode_string(void *mem_ctx, const char *string)
{
struct ldb_val val;
- val.data = string;
+ val.data = discard_const(string);
val.length = strlen(string);
return ldb_binary_encode(mem_ctx, val);
}