aboutsummaryrefslogtreecommitdiffstats
path: root/xmalloc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-05 04:40:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-05 04:40:25 +0000
commitb476ac337200fe5ed62494feb1280652eae57025 (patch)
tree7f2acaae88e7ce2ef38c04df89afa16a40ffdb8f /xmalloc.c
parentf06b1846a2580c3b19a89f5f5e76b7d509afb3c9 (diff)
downloadfetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.gz
fetchmail-b476ac337200fe5ed62494feb1280652eae57025.tar.bz2
fetchmail-b476ac337200fe5ed62494feb1280652eae57025.zip
Progress messages now go to stdout.
svn path=/trunk/; revision=2328
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/xmalloc.c b/xmalloc.c
index ed0b88e7..6d63cde8 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -28,7 +28,10 @@ xmalloc (int n)
p = (XMALLOCTYPE *) malloc(n);
if (p == (XMALLOCTYPE *) 0)
- error(PS_UNDEFINED, errno, _("malloc failed"));
+ {
+ report(stderr, errno, _("malloc failed"));
+ exit(PS_UNDEFINED);
+ }
return(p);
}
@@ -39,7 +42,10 @@ xrealloc (XMALLOCTYPE *p, int n)
return xmalloc (n);
p = (XMALLOCTYPE *) realloc(p, n);
if (p == (XMALLOCTYPE *) 0)
- error(PS_UNDEFINED, errno, _("realloc failed"));
+ {
+ report(stderr, errno, _("realloc failed"));
+ exit(PS_UNDEFINED);
+ }
return p;
}