mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Fix for -Wformat when using uint64_t.
* g10/cipher-aead.c (do_flush): Use PRIu64. * g10/decrypt-data.c (aead_underflow): Likewise. -- Even among LP64 data model machines, uint64_t type may differ; unsigned long or unsigned long long. Only portable way is use of PRIu64. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
57d546674d
commit
b2cedc108d
2 changed files with 5 additions and 4 deletions
|
@ -276,7 +276,7 @@ do_flush (cipher_filter_context_t *cfx, iobuf_t a, byte *buf, size_t size)
|
|||
size_t n1 = cfx->chunksize - (cfx->chunklen + cfx->buflen);
|
||||
finalize = 1;
|
||||
if (DBG_FILTER)
|
||||
log_debug ("chunksize %ju reached;"
|
||||
log_debug ("chunksize %"PRIu64" reached;"
|
||||
" cur buflen=%zu using %zu of %zu\n",
|
||||
cfx->chunksize, cfx->buflen,
|
||||
n1, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue