mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4-lib: Remove unused samdb_msg_set_int()
Found by callcatcher Ricky Nance
This commit is contained in:
parent
872fb6a3e0
commit
b136687d1f
@ -1014,21 +1014,6 @@ int samdb_msg_set_string(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx, struc
|
||||
return ldb_msg_add_string(msg, attr_name, str);
|
||||
}
|
||||
|
||||
/*
|
||||
* sets a signed integer in a message
|
||||
*/
|
||||
int samdb_msg_set_int(struct ldb_context *sam_ldb, TALLOC_CTX *mem_ctx,
|
||||
struct ldb_message *msg, const char *attr_name, int v)
|
||||
{
|
||||
struct ldb_message_element *el;
|
||||
|
||||
el = ldb_msg_find_element(msg, attr_name);
|
||||
if (el) {
|
||||
el->num_values = 0;
|
||||
}
|
||||
return samdb_msg_add_int(sam_ldb, mem_ctx, msg, attr_name, v);
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets an unsigned int element in a message
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user