From: Caleb Xu Date: Fri, 15 Sep 2023 19:00:35 +0000 (-0400) Subject: dbox: dbox_mailbox_open() - use ST_?TIME_SEC() macros X-Git-Tag: 2.4.0~2578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a6198c690c063f05934b4981793e1ddb7ca24b3;p=thirdparty%2Fdovecot%2Fcore.git dbox: dbox_mailbox_open() - use ST_?TIME_SEC() macros --- diff --git a/src/lib-storage/index/dbox-common/dbox-storage.c b/src/lib-storage/index/dbox-common/dbox-storage.c index c303be12ce..7c693b805e 100644 --- a/src/lib-storage/index/dbox-common/dbox-storage.c +++ b/src/lib-storage/index/dbox-common/dbox-storage.c @@ -305,8 +305,8 @@ int dbox_mailbox_list_cleanup(struct mail_user *user, const char *path, if the directory exists. In case, get also the ctime */ struct stat stats; if (stat(path, &stats) == 0) { - last_temp_file_scan = stats.st_atim.tv_sec; - change_time = stats.st_ctim.tv_sec; + last_temp_file_scan = ST_ATIME_SEC(stats); + change_time = ST_CTIME_SEC(stats); } else { if (errno != ENOENT) e_error(user->event, "stat(%s) failed: %m", path);