aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/http.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-01-23 15:32:44 +0000
committerWerner Koch <[email protected]>2017-01-23 15:33:01 +0000
commitaf5979a42b9468ffe0f3ac6de5a77d982c5cf8a0 (patch)
tree783da2ea7d5f6d964dbb0ed9b233c86e27c70f84 /dirmngr/http.c
parentdirmngr: On SIGHUP mark all keyservers alive. (diff)
downloadgnupg-af5979a42b9468ffe0f3ac6de5a77d982c5cf8a0.tar.gz
gnupg-af5979a42b9468ffe0f3ac6de5a77d982c5cf8a0.zip
Fix format string errors and some missing error case initialization.
* common/logging.c (do_logv): Remove extra parentheses in comparison. * dirmngr/dns-stuff.c (resolve_addr_libdns): Init RES so that dns_res_close is given a defined value in the error case. * dirmngr/http.c (cookie_read, cookie_write) [HTTP_USE_NTBTLS]: Fix format string char. * dirmngr/ks-engine-hkp.c (ks_hkp_help): Remove duplicate "const". * dirmngr/ks-engine-http.c (ks_http_help): Ditto. * dirmngr/ks-engine-kdns.c (ks_kdns_help): Ditto. * dirmngr/ks-engine-ldap.c (ks_ldap_help): Ditto. * scd/app-p15.c (send_keypairinfo, do_getattr): Fix format string char. * tools/gpgconf-comp.c (gpg_agent_runtime_change): Init PID for the error case. (scdaemon_runtime_change): Ditto. (dirmngr_runtime_change): Ditto. * tools/gpgconf.c (query_swdb): Init VALUE_SIZE_UL. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--dirmngr/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c
index 945770742..35877d241 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -2707,7 +2707,7 @@ cookie_read (void *cookie, void *buffer, size_t size)
ntbtls_get_stream (c->session->tls_session, &in, &out);
nread = es_fread (buffer, 1, size, in);
if (opt_debug)
- log_debug ("TLS network read: %d/%u\n", nread, size);
+ log_debug ("TLS network read: %d/%zu\n", nread, size);
}
else
#elif HTTP_USE_GNUTLS
@@ -2800,7 +2800,7 @@ cookie_write (void *cookie, const void *buffer_arg, size_t size)
else
nwritten = es_fwrite (buffer, 1, size, out);
if (opt_debug)
- log_debug ("TLS network write: %d/%u\n", nwritten, size);
+ log_debug ("TLS network write: %d/%zu\n", nwritten, size);
}
else
#elif HTTP_USE_GNUTLS