]> git.sur5r.net Git - openldap/commitdiff
noop change: Silence signed vs unsigned warnings
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 12 Jan 2011 14:44:03 +0000 (14:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 12 Jan 2011 14:44:03 +0000 (14:44 +0000)
servers/slapd/backend.c
servers/slapd/overlays/syncprov.c

index 92bcb9f3913b330a48b80ed79ef2203bf27b1ebc..b8fd744a2504264706429e058e4c30989f007fb6 100644 (file)
@@ -1054,7 +1054,7 @@ backend_check_restrictions(
                requires |= op->o_bd->be_requires;
                bssf = &op->o_bd->be_ssf_set.sss_ssf;
                fssf = &ssfs.sss_ssf;
-               for ( i=0; i<sizeof(ssfs)/sizeof(slap_ssf_t); i++ ) {
+               for ( i=0; i < (int)(sizeof(ssfs)/sizeof(slap_ssf_t)); i++ ) {
                        if ( bssf[i] ) fssf[i] = bssf[i];
                }
        }
index 3d465583755bbc1dded6b41b50ef2f7cda2ae042..d3d16686f304f3ca0372e41abf509fb5a4d494d0 100644 (file)
@@ -1821,7 +1821,8 @@ syncprov_op_response( Operation *op, SlapReply *rs )
                         * that changed, and only one can be passed in the csn queue.
                         */
                        Modifications *mod = op->orm_modlist;
-                       int i, j, sid;
+                       unsigned i;
+                       int j, sid;
 
                        for ( i=0; i<mod->sml_numvals; i++ ) {
                                sid = slap_parse_csn_sid( &mod->sml_values[i] );