From: op Date: Wed, 10 May 2023 08:03:49 +0000 (+0000) Subject: cast off_t to long long int for printing X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ad520ff8a992bae9df9f160e1b945ad7c16f399a;p=openbsd cast off_t to long long int for printing reduces the diff with opensmtpd-portable. ok tb@ --- diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c index a0d38b1a7c0..8a27d03c83f 100644 --- a/libexec/mail.local/mail.local.c +++ b/libexec/mail.local/mail.local.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mail.local.c,v 1.39 2020/02/09 14:59:20 millert Exp $ */ +/* $OpenBSD: mail.local.c,v 1.40 2023/05/10 08:03:49 op Exp $ */ /*- * Copyright (c) 1996-1998 Theo de Raadt @@ -243,7 +243,8 @@ retry: } curoff = lseek(mbfd, 0, SEEK_END); - (void)snprintf(biffmsg, sizeof biffmsg, "%s@%lld\n", name, curoff); + (void)snprintf(biffmsg, sizeof biffmsg, "%s@%lld\n", name, + (long long int)curoff); if (lseek(fd, 0, SEEK_SET) == (off_t)-1) { mwarn("temporary file: %s", strerror(errno)); goto bad;