X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_draft.c;h=b3659f9896349655b63a307d45a626fa3f8d5d7c;hb=19b66d5b25c2c07b7bcceaa7c128ab60f9b34793;hp=3659ff3d498e3934823f8e872ff6c9264f7f6b7f;hpb=eec22f627f35bfb37d408463c4d810482b0d3dae;p=mmh diff --git a/sbr/m_draft.c b/sbr/m_draft.c index 3659ff3..b3659f9 100644 --- a/sbr/m_draft.c +++ b/sbr/m_draft.c @@ -9,6 +9,7 @@ #include #include #include +#include /* @@ -23,9 +24,9 @@ m_draft(char *which) char *folder; folder = getcpy(toabsdir(draftfolder)); - create_folder(folder, 0, done); + create_folder(folder, 0, exit); if (!(mp = folder_read(folder))) { - adios(NULL, "unable to read folder %s", folder); + adios(EX_IOERR, NULL, "unable to read folder %s", folder); } free(folder); @@ -37,10 +38,10 @@ m_draft(char *which) */ if (mp->hghmsg >= mp->hghoff) { if (!(mp = folder_realloc(mp, 1, mp->hghmsg + 10))) - adios(NULL, "unable to allocate folder storage"); + adios(EX_OSERR, NULL, "unable to allocate folder storage"); } else if (mp->lowoff > 1) { if (!(mp = folder_realloc(mp, 1, mp->hghoff))) - adios(NULL, "unable to allocate folder storage"); + adios(EX_OSERR, NULL, "unable to allocate folder storage"); } mp->msgflags |= ALLOW_BEYOND; /* allow the beyond sequence */ @@ -51,7 +52,7 @@ m_draft(char *which) ** (to start a new draft). */ if (!m_convert(mp, which)) - done(1); + exit(EX_SOFTWARE); seq_setprev(mp); snprintf(buffer, sizeof(buffer), "%s/%s", mp->foldpath,