1
0
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:
Ricky Nance 2012-02-10 00:36:55 -06:00 committed by Andrew Bartlett
parent 872fb6a3e0
commit b136687d1f

View File

@ -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
*