summaryrefslogtreecommitdiffstats
path: root/tools/no-libgcrypt.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-09-06 18:35:52 +0200
committerWerner Koch <wk@gnupg.org>2006-09-06 18:35:52 +0200
commiteef036df235b7fb16b57bb78daf6f7e590d8e6d6 (patch)
tree9350e6fa2ffde2219b3b13dabb450c96064ca1ad /tools/no-libgcrypt.c
parentMinor changes and typo fixes. (diff)
downloadgnupg2-eef036df235b7fb16b57bb78daf6f7e590d8e6d6.tar.xz
gnupg2-eef036df235b7fb16b57bb78daf6f7e590d8e6d6.zip
The big Assuan error code removal.
Diffstat (limited to 'tools/no-libgcrypt.c')
-rw-r--r--tools/no-libgcrypt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/no-libgcrypt.c b/tools/no-libgcrypt.c
index 636df10c6..10e88f0e7 100644
--- a/tools/no-libgcrypt.c
+++ b/tools/no-libgcrypt.c
@@ -33,7 +33,7 @@
../jnlib/libjnlib.a . ../common/util.h defines macros to map them
to xmalloc etc. */
static void
-out_of_core (void)
+out_of_memory (void)
{
log_fatal (_("error allocating enough memory: %s\n"), strerror (errno));
}
@@ -50,7 +50,7 @@ gcry_xmalloc (size_t n)
{
void *p = malloc (n);
if (!p)
- out_of_core ();
+ out_of_memory ();
return p;
}
@@ -72,7 +72,7 @@ gcry_xrealloc (void *a, size_t n)
{
void *p = realloc (a, n);
if (!p)
- out_of_core ();
+ out_of_memory ();
return p;
}
@@ -89,7 +89,7 @@ gcry_xcalloc (size_t n, size_t m)
{
void *p = calloc (n, m);
if (!p)
- out_of_core ();
+ out_of_memory ();
return p;
}
@@ -99,7 +99,7 @@ gcry_xstrdup (const char *string)
{
void *p = malloc (strlen (string)+1);
if (!p)
- out_of_core ();
+ out_of_memory ();
strcpy( p, string );
return p;
}