#include <h/mh.h>
#include <fcntl.h>
#include <h/utils.h>
+#include "../sbr/m_mktemp.h"
static int hdrfd = NOTOK;
static int txtfd = NOTOK;
char *cp = NULL;
m_getfld_state_t gstate = 0;
- if (hdrfd != NOTOK)
- close (hdrfd), hdrfd = NOTOK;
- if (txtfd != NOTOK)
- close (txtfd), txtfd = NOTOK;
+ if (hdrfd != NOTOK) {
+ close (hdrfd);
+ hdrfd = NOTOK;
+ }
+ if (txtfd != NOTOK) {
+ close (txtfd);
+ txtfd = NOTOK;
+ }
if ((ifp = fopen (msgnam, "r")) == NULL)
adios (msgnam, "unable to open message");