diff options
| author | NIIBE Yutaka <[email protected]> | 2022-02-02 02:09:48 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2022-02-02 02:09:48 +0000 |
| commit | b2cedc108d5cabb07f496c31c11c9cba6f328f76 (patch) | |
| tree | 268ee6265ace58db2088909cfdc26f6e62e1a140 /g10/cipher-aead.c | |
| parent | dirmngr: Avoid initial delay on the first keyserver access. (diff) | |
| download | gnupg-b2cedc108d5cabb07f496c31c11c9cba6f328f76.tar.gz gnupg-b2cedc108d5cabb07f496c31c11c9cba6f328f76.zip | |
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 <[email protected]>
Diffstat (limited to 'g10/cipher-aead.c')
| -rw-r--r-- | g10/cipher-aead.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/cipher-aead.c b/g10/cipher-aead.c index b14b85444..1fd2021e5 100644 --- a/g10/cipher-aead.c +++ b/g10/cipher-aead.c @@ -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); |
