common: Use default_errsource for call-gpg and exectool.
authorWerner Koch <wk@gnupg.org>
Mon, 14 Dec 2015 18:55:34 +0000 (19:55 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 15 Dec 2015 12:40:10 +0000 (13:40 +0100)
commit4ffe44c5874ed655d82adfa7a85439fab91cde03
tree41acef6385ef8fae46358cf2c4a23b7c75e393ee
parent345ec7323d643528d2f904765708b5ecfe51f57b
common: Use default_errsource for call-gpg and exectool.

* common/call-gpg.c (my_error_from_syserror, my_error_from_errno): New.
Use these wrappers.
* common/exectool.c (my_error_from_syserror): New.  Use these
wrappers.
--

Function in common should use the error source of the component which
links them.  The global variable DEFAULT_ERRSOURCE is set early by
each component to make this possible.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/call-gpg.c
common/exectool.c