}
p_delete(&buff);
- safe_fclose (&fp);
+ m_fclose(&fp);
}
int mh_buffy (const char *path)
fprintf (nfp, "%s\n", buff);
}
}
- safe_fclose (&ofp);
+ m_fclose(&ofp);
/* now, update our unseen, flagged, and replied sequences */
for (l = 0; l < ctx->msgcount; l++) {
/* try to commit the changes - no guarantee here */
- safe_fclose (&nfp);
+ m_fclose(&nfp);
unlink (sequences);
if (safe_rename (tmpfname, sequences) != 0) {
fprintf (nfp, "%s\n", buff);
}
}
- safe_fclose (&ofp);
+ m_fclose(&ofp);
p_delete(&buff);
if (!unseen_done && unseen)
if (!replied_done && replied)
fprintf (nfp, "%s: %d\n", NONULL (MhReplied), n);
- safe_fclose (&nfp);
+ m_fclose(&nfp);
unlink (sequences);
if (safe_rename (tmpfname, sequences) != 0)
char full[_POSIX_PATH_MAX];
char *s;
- if (safe_fclose (&msg->fp) != 0)
+ if (m_fclose(&msg->fp) != 0)
return -1;
/* extract the subdir */
char path[_POSIX_PATH_MAX];
char tmp[16];
- if (safe_fclose (&msg->fp) != 0)
+ if (m_fclose(&msg->fp) != 0)
return -1;
if ((dirp = opendir (ctx->path)) == NULL) {
FILE *fp = NULL;
if (mh_mkstemp (ctx, &fp, &tmp) == 0) {
- safe_fclose (&fp);
+ m_fclose(&fp);
if (safe_rename (tmp, buf) == -1)
unlink (tmp);
p_delete(&tmp);