From: Pierangelo Masarati Date: Sat, 29 Mar 2008 16:22:50 +0000 (+0000) Subject: make stamp a long no matter what time_t is, to print it accordingly (ITS#5441) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f32f99211e9972d67b4f20a97abf4f3f9f5af394;p=openldap make stamp a long no matter what time_t is, to print it accordingly (ITS#5441) --- diff --git a/servers/slapd/overlays/auditlog.c b/servers/slapd/overlays/auditlog.c index 7d7b82a8f6..82f065515b 100644 --- a/servers/slapd/overlays/auditlog.c +++ b/servers/slapd/overlays/auditlog.c @@ -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);