aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-26 03:58:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-26 03:58:57 +0000
commitcffef417bb9e0a231968c5fbadca8e5141a65083 (patch)
tree6de7999c000af0698dab13fa294229db4948402b /xmalloc.c
parent89f0f156f5df8b1e561577b90956ec403b114b4a (diff)
downloadfetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.tar.gz
fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.tar.bz2
fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.zip
Internationalization support via GNU gettext().
svn path=/trunk/; revision=2208
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index 0ce09053..481f8180 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -2,6 +2,8 @@
* xmalloc.c -- allocate space or die
*
* For license terms, see the file COPYING in this directory.
+ *
+ * i18n by Arnaldo Carvalho de Melo <acme@conectiva.com.br> 7-Nov-1998
*/
#include "config.h"
@@ -12,6 +14,7 @@
#include <stdlib.h>
#endif
#include "fetchmail.h"
+#include "i18n.h"
#if defined(HAVE_VOIDPOINTER)
#define XMALLOCTYPE void
@@ -26,7 +29,7 @@ xmalloc (int n)
p = (XMALLOCTYPE *) malloc(n);
if (p == (XMALLOCTYPE *) 0)
- error(PS_UNDEFINED, errno, "malloc failed");
+ error(PS_UNDEFINED, errno, _("malloc failed"));
return(p);
}
@@ -37,7 +40,7 @@ xrealloc (XMALLOCTYPE *p, int n)
return xmalloc (n);
p = (XMALLOCTYPE *) realloc(p, n);
if (p == (XMALLOCTYPE *) 0)
- error(PS_UNDEFINED, errno, "realloc failed");
+ error(PS_UNDEFINED, errno, _("realloc failed"));
return p;
}