diff options
author | Werner Koch <wk@gnupg.org> | 2013-08-22 09:35:21 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-08-28 13:04:31 +0200 |
commit | 04e2c83f189cc56342e1be784bdc63761ccdb5bb (patch) | |
tree | 46d3ce1615585aa8dfbd2ac56b04c3050f8ba0b4 /scd | |
parent | scd: fix parsing login-data DO. (diff) | |
download | gnupg2-04e2c83f189cc56342e1be784bdc63761ccdb5bb.tar.xz gnupg2-04e2c83f189cc56342e1be784bdc63761ccdb5bb.zip |
agent: Fix two compiler warnings.
* agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu
in format string.
* scd/ccid-driver.c (ccid_get_atr): Ditto.
* agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to
avoid maybe_unitialized warning.
--
Actually the first one might have been a problem on big endian
machines.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'scd')
-rw-r--r-- | scd/ccid-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 3376be0e9..478d8c6c0 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -2673,7 +2673,7 @@ ccid_get_atr (ccid_driver_t handle, if (msglen != 10 + 4) { - DEBUGOUT_1 ("Setting PPS failed: %d\n", msglen); + DEBUGOUT_1 ("Setting PPS failed: %zu\n", msglen); return CCID_DRIVER_ERR_CARD_IO_ERROR; } |