aboutsummaryrefslogtreecommitdiffstats
path: root/src/op-support.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2010-05-06 13:39:55 +0000
committerMarcus Brinkmann <[email protected]>2010-05-06 13:39:55 +0000
commit749325d6c10fd6a8d8fafa3c9c25b6822eaf0dc5 (patch)
tree5e43ee1064a9e68208c7ab288e08e89c814caa5f /src/op-support.c
parent2010-04-19 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-749325d6c10fd6a8d8fafa3c9c25b6822eaf0dc5.tar.gz
gpgme-749325d6c10fd6a8d8fafa3c9c25b6822eaf0dc5.zip
2010-05-06 Marcus Brinkmann <[email protected]>
* configure.ac: Require libgpg-error 1.8. src/ 2010-05-06 Marcus Brinkmann <[email protected]> * sign.c, data-user.c, conversion.c, debug.c, verify.c, data.c, decrypt.c, delete.c, assuan-support.c, import.c, engine-gpgsm.c, data-mem.c, op-support.c, w32-io.c, w32-util.c, data-compat.c: Use gpg_error_from_syserror instead gpg_error_from_errno, and use gpg_err_set_errno to set error number. * setenv.c: Include <gpg-error.h> and define __set_errno to use gpg_err_set_errno. * gpgme-tool.c (ARGP_ERR_UNKNOWN): Define to EDEADLOCK (which is mapped in Windows CE) instead of E2BIG (which is not). (gt_import_keys): Initialize err.
Diffstat (limited to 'src/op-support.c')
-rw-r--r--src/op-support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op-support.c b/src/op-support.c
index b3cf55ec..67385360 100644
--- a/src/op-support.c
+++ b/src/op-support.c
@@ -182,7 +182,7 @@ _gpgme_parse_inv_recp (char *args, gpgme_invalid_key_t *key)
if (!inv_key)
return gpg_error_from_errno (errno);
inv_key->next = NULL;
- errno = 0;
+ gpg_err_set_errno (0);
reason = strtol (args, &tail, 0);
if (errno || args == tail || (*tail && *tail != ' '))
{
@@ -299,7 +299,7 @@ _gpgme_parse_plaintext (char *args, char **filenamep)
{
char *filename = strdup (args);
if (!filename)
- return gpg_error_from_errno (errno);
+ return gpg_error_from_syserror ();
*filenamep = filename;
}