aboutsummaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rw-r--r--agent/call-pinentry.c4
-rw-r--r--agent/call-scd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index 78e1c1106..2562e51f4 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -208,7 +208,7 @@ start_pinentry (ctrl_t ctrl)
const char *pgmname;
assuan_context_t ctx;
const char *argv[5];
- int no_close_list[3];
+ assuan_fd_t no_close_list[3];
int i;
const char *tmpstr;
unsigned long pinentry_pid;
@@ -291,7 +291,7 @@ start_pinentry (ctrl_t ctrl)
no_close_list[i++] = assuan_fd_from_posix_fd (log_get_fd ());
no_close_list[i++] = assuan_fd_from_posix_fd (fileno (stderr));
}
- no_close_list[i] = -1;
+ no_close_list[i] = ASSUAN_INVALID_FD;
rc = assuan_new (&ctx);
if (rc)
diff --git a/agent/call-scd.c b/agent/call-scd.c
index a6c429c41..289b2d95a 100644
--- a/agent/call-scd.c
+++ b/agent/call-scd.c
@@ -198,7 +198,7 @@ start_scd (ctrl_t ctrl)
const char *pgmname;
assuan_context_t ctx = NULL;
const char *argv[3];
- int no_close_list[3];
+ assuan_fd_t no_close_list[3];
int i;
int rc;
@@ -324,7 +324,7 @@ start_scd (ctrl_t ctrl)
no_close_list[i++] = assuan_fd_from_posix_fd (log_get_fd ());
no_close_list[i++] = assuan_fd_from_posix_fd (fileno (stderr));
}
- no_close_list[i] = -1;
+ no_close_list[i] = ASSUAN_INVALID_FD;
/* Connect to the pinentry and perform initial handshaking. Use
detached flag (128) so that under W32 SCDAEMON does not show up a