Home GnuPG
Diffusion GnuPG 4ffe44c5874e

common: Use default_errsource for call-gpg and exectool.
4ffe44c5874eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Dec 14 2015, 7:55 PM
Parents
rG345ec7323d64: gpg: Reduce number of strings to translate.
Branches
Unknown
Tags
Unknown