aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-pinentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/call-pinentry.c')
-rw-r--r--agent/call-pinentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index 89249b6e8..a2ac14ab2 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -682,7 +682,7 @@ start_pinentry (ctrl_t ctrl)
log_info ("You may want to update to a newer pinentry\n");
rc = 0;
}
- else if (!rc && (pid_t)pinentry_pid == (pid_t)(-1))
+ else if (!rc && pinentry_pid == (unsigned long)(-1L))
log_error ("pinentry did not return a PID\n");
else
{