diff options
Diffstat (limited to 'libkdenetwork/libgpgme-copy/gpgme/rungpg.c')
-rw-r--r-- | libkdenetwork/libgpgme-copy/gpgme/rungpg.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libkdenetwork/libgpgme-copy/gpgme/rungpg.c b/libkdenetwork/libgpgme-copy/gpgme/rungpg.c index 42fff0032..1a25dac00 100644 --- a/libkdenetwork/libgpgme-copy/gpgme/rungpg.c +++ b/libkdenetwork/libgpgme-copy/gpgme/rungpg.c @@ -1211,7 +1211,7 @@ start (engine_gpg_t gpg) int saved_errno; int i, n; int status; - struct spawn_fd_item_s *fd_child_list, *fd_tqparent_list; + struct spawn_fd_item_s *fd_child_list, *fd_parent_list; if (!gpg) return gpg_error (GPG_ERR_INV_VALUE); @@ -1247,7 +1247,7 @@ start (engine_gpg_t gpg) fd_child_list = calloc (n + n, sizeof *fd_child_list); if (!fd_child_list) return gpg_error_from_errno (errno); - fd_tqparent_list = fd_child_list + n; + fd_parent_list = fd_child_list + n; /* build the fd list for the child */ n = 0; @@ -1273,28 +1273,28 @@ start (engine_gpg_t gpg) n = 0; if (gpg->status.fd[1] != -1) { - fd_tqparent_list[n].fd = gpg->status.fd[1]; - fd_tqparent_list[n].dup_to = -1; + fd_parent_list[n].fd = gpg->status.fd[1]; + fd_parent_list[n].dup_to = -1; n++; } if (gpg->colon.fd[1] != -1) { - fd_tqparent_list[n].fd = gpg->colon.fd[1]; - fd_tqparent_list[n].dup_to = -1; + fd_parent_list[n].fd = gpg->colon.fd[1]; + fd_parent_list[n].dup_to = -1; n++; } for (i = 0; gpg->fd_data_map[i].data; i++) { - fd_tqparent_list[n].fd = gpg->fd_data_map[i].peer_fd; - fd_tqparent_list[n].dup_to = -1; + fd_parent_list[n].fd = gpg->fd_data_map[i].peer_fd; + fd_parent_list[n].dup_to = -1; n++; } - fd_tqparent_list[n].fd = -1; - fd_tqparent_list[n].dup_to = -1; + fd_parent_list[n].fd = -1; + fd_parent_list[n].dup_to = -1; status = _gpgme_io_spawn (gpg->file_name ? gpg->file_name : _gpgme_get_gpg_path (), - gpg->argv, fd_child_list, fd_tqparent_list); + gpg->argv, fd_child_list, fd_parent_list); saved_errno = errno; free (fd_child_list); if (status == -1) |