Use gpg_error_from_syserror instead of directly accessing errno.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2013 16:35:40 +0000 (17:35 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2013 16:35:40 +0000 (17:35 +0100)
commit51fd6d8292cb41d743407e6ac9d86a5ab8e68d8c
treed431a193f5eece63dba5aa6485416e79f67396cb
parent322552a88db47896881e55c00ca301137cd160c6
Use gpg_error_from_syserror instead of directly accessing errno.

--

Also fixed a couple of minor thing; e.g. save the error before calling
cleanup functions.  Do not save the errno if only free is called
in between.
27 files changed:
src/data-compat.c
src/data-mem.c
src/engine-assuan.c
src/engine-g13.c
src/engine-gpg.c
src/engine-gpgconf.c
src/engine-gpgsm.c
src/engine-uiserver.c
src/engine.c
src/genkey.c
src/get-env.c
src/gpgme-tool.c
src/gpgme.c
src/import.c
src/key.c
src/keylist.c
src/op-support.c
src/passphrase.c
src/progress.c
src/sig-notation.c
src/sign.c
src/signers.c
src/trust-item.c
src/trustlist.c
src/wait-global.c
src/wait-private.c
src/wait.c