commit a70fd4b207942b15f968c1c02dfa879e44d5181c from: Martijn van Duren date: Tue May 11 21:44:17 2021 UTC cast now to long long for portability commit - 3a6f996440c6ed86f8e2dd99d0bef19c462b27e0 commit + a70fd4b207942b15f968c1c02dfa879e44d5181c blob - 6f91740bdd63a6096c76917dc65cc361920b924a blob + db7c1e2d50a3ee8f04d53baec116be60338844ec --- main.c +++ main.c @@ -545,7 +545,8 @@ dkim_sign(struct osmtpd_ctx *ctx) if (addtime || addexpire) now = time(NULL); - if (addtime && !dkim_signature_printf(message, "t=%lld; ", now)) + if (addtime && !dkim_signature_printf(message, "t=%lld; ", + (long long)now)) return; if (addexpire != 0 && !dkim_signature_printf(message, "x=%lld; ", now + addexpire < now ? INT64_MAX : now + addexpire))