From d673b49dfcd75f723b39fbc914d69caae4b96237 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 18 Oct 2009 18:13:17 +0200 Subject: s4:ldb_msg_check_string_attribute - add a comment about the result values --- source4/lib/ldb/common/ldb_msg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index bf607fd4e6..a8ea52b0b1 100644 --- a/source4/lib/ldb/common/ldb_msg.c +++ b/source4/lib/ldb/common/ldb_msg.c @@ -890,7 +890,11 @@ void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE * } } -int ldb_msg_check_string_attribute(const struct ldb_message *msg, const char *name, const char *value) +/* + checks for a string attribute. Returns "1" on match and otherwise "0". +*/ +int ldb_msg_check_string_attribute(const struct ldb_message *msg, + const char *name, const char *value) { struct ldb_message_element *el; struct ldb_val val; -- cgit