]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/module.c
DB_RMW flag to dn2id and id2entry
[openldap] / servers / slapd / module.c
index da7c460c7570d3b7dd259588fcf496faea5f19bf..4a58714d5f0a20b385f8f1cdbfe53c88a099f73c 100644 (file)
@@ -166,7 +166,7 @@ int module_load(const char* file_name, int argc, char *argv[])
                return rc;
        }
 
-       if (rc >= (sizeof(module_regtable) / sizeof(struct module_regtable_t))
+       if (rc >= (int)(sizeof(module_regtable) / sizeof(struct module_regtable_t))
                || module_regtable[rc].proc == NULL)
        {
 #ifdef NEW_LOGGING
@@ -265,12 +265,12 @@ load_extop_module (
        const char *file_name
 )
 {
-       SLAP_EXTOP_MAIN_FN ext_main;
+       SLAP_EXTOP_MAIN_FN *ext_main;
        int (*ext_getoid)(int index, char *oid, int blen);
        char *oid;
        int rc;
 
-       ext_main = (SLAP_EXTOP_MAIN_FN)module_resolve(module, "ext_main");
+       ext_main = (SLAP_EXTOP_MAIN_FN *)module_resolve(module, "ext_main");
        if (ext_main == NULL) {
                return(-1);
        }