projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No error-checking for error-checking alloc functions
[mmh]
/
uip
/
burst.c
diff --git
a/uip/burst.c
b/uip/burst.c
index
37dc9b1
..
04e5450
100644
(file)
--- a/
uip/burst.c
+++ b/
uip/burst.c
@@
-7,6
+7,7
@@
*/
#include <h/mh.h>
*/
#include <h/mh.h>
+#include <h/utils.h>
#include <unistd.h>
#include <sys/stat.h>
#include <locale.h>
#include <unistd.h>
#include <sys/stat.h>
#include <locale.h>
@@
-117,9
+118,7
@@
main(int argc, char **argv)
seq_setprev(mp); /* set the previous-sequence */
smsgs = (struct smsg *)
seq_setprev(mp); /* set the previous-sequence */
smsgs = (struct smsg *)
- calloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs));
- if (smsgs == NULL)
- adios(EX_OSERR, NULL, "unable to allocate burst storage");
+ mh_xcalloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs));
hi = mp->hghmsg + 1;
hi = mp->hghmsg + 1;