/*
** prototypes
*/
-static void inc_done();
+void inc_done();
int
/* copy of mail directory because the static gets overwritten */
char *maildir_copy = NULL;
- atexit(inc_done);
+ if (atexit(inc_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
/*
** absolutely the first thing we do is save our privileges,
return 0;
}
-static void
+void
inc_done()
{
if (locked) {
static char outfile[BUFSIZ];
static int unlink_outfile = 0;
-static void unlink_done();
+void unlink_done();
/* mhoutsbr.c */
int output_message(CT, char *);
FILE *fp = NULL;
FILE *fp_out = NULL;
- atexit(unlink_done);
+ if (atexit(unlink_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
}
-static void
+void
unlink_done()
{
/*
struct msgs *mp = NULL;
CT ct, *ctp;
- atexit(freects_done);
+ if (atexit(freects_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
FILE *fp;
int ontty = 0;
- atexit(freects_done);
+ if (atexit(freects_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
CT ct, *ctp;
FILE *fp;
- atexit(freects_done);
+ if (atexit(freects_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
struct msgs *mp = NULL;
CT ct, *ctp;
- atexit(freects_done);
+ if (atexit(freects_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
static int listsw = -1;
-static void putzero_done();
+void putzero_done();
int
main(int argc, char **argv)
struct msgs *mp;
register FILE *fp;
- atexit(putzero_done);
+ if (atexit(putzero_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
}
-static void
+void
putzero_done()
{
if (listsw && !isatty(fileno(stdout)))
** prototypes
*/
static void rcvdistout(FILE *, char *, char *);
-static void unlink_done();
+void unlink_done();
int
FILE *fp;
char *tfile = NULL;
- atexit(unlink_done);
+ if (atexit(unlink_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
}
-static void
+void
unlink_done()
{
if (*backup) {
*/
static char *tmpfilenam = NULL;
-static void unlink_done();
+void unlink_done();
int
main(int argc, char **argv)
struct msgs *mp;
struct stat st;
- atexit(unlink_done);
+ if (atexit(unlink_done) != 0) {
+ adios(NULL, "atexit failed");
+ }
setlocale(LC_ALL, "");
invo_name = mhbasename(argv[0]);
/*
** Clean up and exit
*/
-static void
+void
unlink_done()
{
if (tmpfilenam && *tmpfilenam) {