diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-01-05 04:40:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-01-05 04:40:25 +0000 |
commit | b476ac337200fe5ed62494feb1280652eae57025 (patch) | |
tree | 7f2acaae88e7ce2ef38c04df89afa16a40ffdb8f /xmalloc.c | |
parent | f06b1846a2580c3b19a89f5f5e76b7d509afb3c9 (diff) | |
download | fetchmail-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.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; } |