summaryrefslogtreecommitdiff
path: root/src/spawn-posix.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-06-18 15:18:29 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2019-06-18 15:18:29 +0900
commit10ae655db22321f0d6efb75f88e169b57ce63375 (patch)
tree828c98a24beb897d8d5d922d1db3459dcbb9b2ab /src/spawn-posix.c
parent849ac6abe3ce0001fb11cef0e26df0893468d238 (diff)
downloadlibgpg-error-10ae655db22321f0d6efb75f88e169b57ce63375.tar.gz
Portability fix for PID.
* src/spawn-posix.c (gpgrt_wait_processes): Cast to int. -- On some systems (like Solaris), pid_t is long int. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/spawn-posix.c')
-rw-r--r--src/spawn-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spawn-posix.c b/src/spawn-posix.c
index 7be15ea..ac4c4ce 100644
--- a/src/spawn-posix.c
+++ b/src/spawn-posix.c
@@ -753,7 +753,7 @@ _gpgrt_wait_processes (const char **pgmnames, pid_t *pids, size_t count,
/* Process PIDS[i] died. */
if (r_exitcodes[i] != (pid_t) -1)
{
- _gpgrt_log_error ("PID %d was reused", pid);
+ _gpgrt_log_error ("PID %d was reused", (int)pid);
ec = GPG_ERR_GENERAL;
break;
}