From 96c7901ec1c79be732570811223d3ea54875abfe Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 27 May 2016 15:25:03 +0200 Subject: common: Make use of default_errsource in exechelp. * common/exechelp-posix.c (my_error_from_syserror, my_error): New. Use them instead of gpg_error and gpg_error_from_syserror. (create_pipe_and_estream): Remove arg ERRSOURCE and fix use of OUTBOUND which has a wrong name. Adjust callers. (gnupg_spawn_process): Remove arg ERRSOURCE and replace by use of DEFAULT_ERRSOURCE. * common/exechelp-w32.c (gnupg_spawn_process): Ditto. * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto. * common/exectool.c (gnupg_exec_tool_stream): Do not pass GPG_ERROR_FROM_SYSERROR. * tools/gpgconf-comp.c (gc_component_check_options): Ditto. (retrieve_options_from_program): Ditto. Signed-off-by: Werner Koch --- common/exechelp-w32ce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/exechelp-w32ce.c') diff --git a/common/exechelp-w32ce.c b/common/exechelp-w32ce.c index e208f6e2f..57ecaf31e 100644 --- a/common/exechelp-w32ce.c +++ b/common/exechelp-w32ce.c @@ -509,7 +509,6 @@ create_process (const char *pgmname, const char *cmdline, /* Fork and exec the PGMNAME, see exechelp.h for details. */ gpg_error_t gnupg_spawn_process (const char *pgmname, const char *argv[], - gpg_err_source_t errsource, void (*preexec)(void), unsigned int flags, estream_t *r_infp, estream_t *r_outfp, @@ -534,6 +533,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[], } errpipe = {INVALID_HANDLE_VALUE, 0}; estream_t outfp = NULL; estream_t errfp = NULL; + gpg_err_source_t errsource = default_errsource; (void)preexec; (void)flags; -- cgit v1.2.3