X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/159b2a1ede7bd581508e8704112d83efd44e0dfa..63041ccfe270ccecede25ac4f4c18d71aa43b1a4:/sbr/folder_realloc.c diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index 8ed95e2e..a8dd3a94 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -5,8 +5,10 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "folder_realloc.h" +#include "error.h" +#include "h/utils.h" /* * Reallocate some of the space in the folder @@ -25,14 +27,14 @@ folder_realloc (struct msgs *mp, int lo, int hi) /* sanity checks */ if (lo < 1) - adios (NULL, "BUG: called folder_realloc with lo (%d) < 1", lo); + die("BUG: called folder_realloc with lo (%d) < 1", lo); if (hi < 1) - adios (NULL, "BUG: called folder_realloc with hi (%d) < 1", hi); + die("BUG: called folder_realloc with hi (%d) < 1", hi); if (mp->nummsg > 0 && lo > mp->lowmsg) - adios (NULL, "BUG: called folder_realloc with lo (%d) > mp->lowmsg (%d)", + die("BUG: called folder_realloc with lo (%d) > mp->lowmsg (%d)", lo, mp->lowmsg); if (mp->nummsg > 0 && hi < mp->hghmsg) - adios (NULL, "BUG: called folder_realloc with hi (%d) < mp->hghmsg (%d)", + die("BUG: called folder_realloc with hi (%d) < mp->hghmsg (%d)", hi, mp->hghmsg); /* Check if we really need to reallocate anything */