X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fdropsbr.c;h=2b3d0208740bb0fe88692ff8290d6d82c96ace65;hp=212d162ab0e2a2d473ec33b08717de01f09486b8;hb=1bb1f6c3f38b05060bf699ea2743f7386889bf63;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 212d162..2b3d020 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -10,17 +10,12 @@ */ #include +#include -#ifndef MMDFONLY -# include -# include -# include -# include -#else -# include "dropsbr.h" -# include "strings.h" -# include "mmdfonly.h" -#endif +#include +#include +#include +#include #ifdef HAVE_ERRNO_H # include @@ -35,8 +30,6 @@ #include -extern int errno; - /* * static prototypes */ @@ -226,14 +219,8 @@ mbx_read (FILE *fp, long pos, struct drop **drops, int noisy) if (dp >= ep) { register int curlen = dp - pp; - cp = (struct drop *) realloc ((char *) pp, + cp = (struct drop *) mh_xrealloc ((char *) pp, (size_t) (len += MAXFOLDER) * sizeof(*pp)); - if (cp == NULL) { - if (noisy) - admonish (NULL, "unable to allocate drop storage"); - free ((char *) pp); - return 0; - } dp = cp + curlen, ep = (pp = cp) + len - 1; } }