s4:libnet_become_dc - change counter variables to "unsigned" where they count LDB...
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 10 Mar 2010 19:22:06 +0000 (20:22 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 10 Mar 2010 19:22:06 +0000 (20:22 +0100)
source4/libnet/libnet_become_dc.c
source4/libnet/libnet_unbecome_dc.c

index 8eac1fd122191ccf0e67f026b1a7cf18b188dc53..1721e8253ae8030c4373d64a58620937c66f8af8 100644 (file)
@@ -1437,7 +1437,7 @@ static NTSTATUS becomeDC_ldap1_server_object_modify(struct libnet_BecomeDC_state
 {
        int ret;
        struct ldb_message *msg;
-       uint32_t i;
+       unsigned int i;
 
        /* make a 'modify' msg, and only for serverReference */
        msg = ldb_msg_new(s);
@@ -2891,7 +2891,7 @@ static NTSTATUS becomeDC_ldap2_modify_computer(struct libnet_BecomeDC_state *s)
 {
        int ret;
        struct ldb_message *msg;
-       uint32_t i;
+       unsigned int i;
        uint32_t user_account_control = UF_SERVER_TRUST_ACCOUNT |
                                        UF_TRUSTED_FOR_DELEGATION;
 
index 3aa65c60c8e4287e09f4bc7b9b352ab6053d819f..0695ec762ff03bccc986a8546b1a394a8514b2ee 100644 (file)
@@ -419,7 +419,7 @@ static NTSTATUS unbecomeDC_ldap_modify_computer(struct libnet_UnbecomeDC_state *
        int ret;
        struct ldb_message *msg;
        uint32_t user_account_control = UF_WORKSTATION_TRUST_ACCOUNT;
-       uint32_t i;
+       unsigned int i;
 
        /* as the value is already as we want it to be, we're done */
        if (s->dest_dsa.user_account_control == user_account_control) {