aboutsummaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rw-r--r--agent/cache.c4
-rw-r--r--agent/gpg-agent.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/agent/cache.c b/agent/cache.c
index 1c8a42bf9..9b90d93f4 100644
--- a/agent/cache.c
+++ b/agent/cache.c
@@ -185,7 +185,9 @@ new_data (const char *string, struct secret_data_s **r_data)
d_enc->totallen = total;
res = npth_mutex_lock (&encryption_lock);
if (res)
- log_fatal ("failed to acquire cache encryption mutex: %s\n", strerror (res));
+ log_fatal ("failed to acquire cache encryption mutex: %s\n",
+ strerror (res));
+
err = gcry_cipher_encrypt (encryption_handle, d_enc->data, total,
d->data, total - 8);
xfree (d);
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 30ec1d360..53d25402a 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1778,7 +1778,8 @@ start_connection_thread (void *arg)
if (check_nonce (ctrl, &socket_nonce))
{
- log_error ("handler 0x%lx nonce check FAILED\n", (unsigned long) npth_self());
+ log_error ("handler 0x%lx nonce check FAILED\n",
+ (unsigned long) npth_self());
return NULL;
}