convert a ldb_message structure to a list of ldap_mod structures
ready for ildap_add() or ildap_modify()
*/
-static struct ldap_mod **ildb_msg_to_mods(void *mem_ctx, int *num_mods,
+static struct ldap_mod **ildb_msg_to_mods(void *mem_ctx, unsigned int *num_mods,
const struct ldb_message *msg,
int use_flags)
{
struct ldap_mod **mods;
unsigned int i;
- int n = 0;
+ unsigned int n = 0;
/* allocate maximum number of elements needed */
mods = talloc_array(mem_ctx, struct ldap_mod *, msg->num_elements+1);
struct ldb_request *req = ac->req;
struct ldap_message *msg;
struct ldap_mod **mods;
- int i,n;
+ unsigned int i,n;
msg = new_ldap_message(req);
if (msg == NULL) {
struct ldb_request *req = ac->req;
struct ldap_message *msg;
struct ldap_mod **mods;
- int i,n;
+ unsigned int i,n;
msg = new_ldap_message(req);
if (msg == NULL) {