aboutsummaryrefslogtreecommitdiffstats
path: root/common/convert.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-02 21:25:08 +0000
committerWerner Koch <[email protected]>2010-03-02 21:25:08 +0000
commitd232fd2e543fb81151d7fe25e9f0692610870788 (patch)
tree8ce5ef17c07737c2ae873f945f99fb255f6573a3 /common/convert.c
parentFinished jnlib port to CE. (diff)
downloadgnupg-d232fd2e543fb81151d7fe25e9f0692610870788.tar.gz
gnupg-d232fd2e543fb81151d7fe25e9f0692610870788.zip
First steps towards the W32CE port
Diffstat (limited to 'common/convert.c')
-rw-r--r--common/convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/convert.c b/common/convert.c
index d3e8b642e..aa3a3a809 100644
--- a/common/convert.c
+++ b/common/convert.c
@@ -115,7 +115,7 @@ do_bin2hex (const void *buffer, size_t length, char *stringbuf, int with_colon)
size_t nbytes = n * length + 1;
if (length && (nbytes-1) / n != length)
{
- errno = ENOMEM;
+ gpg_err_set_errno (ENOMEM);
return NULL;
}
stringbuf = xtrymalloc (nbytes);
@@ -232,7 +232,7 @@ hex2str_alloc (const char *hexstring, size_t *r_count)
{
if (r_count)
*r_count = 0;
- errno = EINVAL;
+ gpg_err_set_errno (EINVAL);
return NULL;
}
if (r_count)