git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b136687
)
s4-lib: Remove unused samdb_msg_set_string()
author
Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>
Fri, 10 Feb 2012 06:41:44 +0000
(
00:41
-0600)
committer
Andrew Bartlett
<abartlet@samba.org>
Sat, 25 Feb 2012 02:51:37 +0000
(
03:51
+0100)
Found by callcatcher.
Ricky Nance
source4/dsdb/common/util.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/common/util.c
b/source4/dsdb/common/util.c
index 2647b0025713cf89af575d7c958dde9144494e46..6a26b474099dca399aa3dfedd86cc7e9d1834330 100644
(file)
--- a/
source4/dsdb/common/util.c
+++ b/
source4/dsdb/common/util.c
@@
-999,21
+999,6
@@
int samdb_msg_set_value(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct
return ldb_msg_add_value(msg, attr_name, val, NULL);
}
-/*
- set a string element in a message
-*/
-int samdb_msg_set_string(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struct ldb_message *msg,
- const char *attr_name, const char *str)
-{
- struct ldb_message_element *el;
-
- el = ldb_msg_find_element(msg, attr_name);
- if (el) {
- el->num_values = 0;
- }
- return ldb_msg_add_string(msg, attr_name, str);
-}
-
/*
* Sets an unsigned int element in a message
*