diff options
author | NIIBE Yutaka <[email protected]> | 2020-07-31 08:20:31 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-07-31 08:20:31 +0000 |
commit | da3a4c54a8ce8a7dc442c70bda9b7eda22d43e57 (patch) | |
tree | 66b544fdabb865158fc65f84a12fb88ba574292e /agent/call-pinentry.c | |
parent | scd: Silence compiler warning. (diff) | |
download | gnupg-da3a4c54a8ce8a7dc442c70bda9b7eda22d43e57.tar.gz gnupg-da3a4c54a8ce8a7dc442c70bda9b7eda22d43e57.zip |
agent: Fix coercion for pinentry_pid handling.
* agent/call-pinentry.c (start_pinentry): Don't use pid_t.
--
When pid_t is 64-bit integer and unsigned long is 32-bit,
it never matches, because left hand side does not fill
upper 32-bit.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/call-pinentry.c')
-rw-r--r-- | agent/call-pinentry.c | 2 |
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 { |