]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/auditlog.c
ITS#5572 retrieve main DB's ACL before relevant operations
[openldap] / servers / slapd / overlays / auditlog.c
index 7d7b82a8f6432214a397534df03b70579961b118..82f065515b209078037bb52562227c5b44d1b3af 100644 (file)
@@ -127,7 +127,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
 
        stamp = slap_get_time();
        fprintf(f, "# %s %ld %s%s%s\n",
-               what, stamp, suffix, who ? " " : "", who ? who->bv_val : "");
+               what, (long)stamp, suffix, who ? " " : "", who ? who->bv_val : "");
 
        if ( !BER_BVISEMPTY( &op->o_conn->c_dn ) &&
                (!who || !dn_match( who, &op->o_conn->c_dn )))
@@ -174,7 +174,7 @@ static int auditlog_response(Operation *op, SlapReply *rs) {
                break;
        }
 
-       fprintf(f, "# end %s %ld\n\n", what, stamp);
+       fprintf(f, "# end %s %ld\n\n", what, (long)stamp);
 
        fclose(f);
        ldap_pvt_thread_mutex_unlock(&ad->ad_mutex);