#include <h/addrsbr.h>
#include <h/fmt_scan.h>
#include <h/mts.h>
+#include "h/done.h"
#include <h/utils.h>
+#include "sbr/terminal.h"
#define NADDRS 100
}
if (addrp == NADDRS)
adios (NULL, "more than %d addresses", NADDRS);
- else
- addrs[addrp++] = cp;
+ addrs[addrp++] = cp;
}
addrs[addrp] = NULL;
status += process (addrs[addrp], width);
fmt_free (fmt, 1);
- done (status);
+ done(!!status);
return 1;
}
cptr = fmt_findcomp ("text");
if (cptr) {
- mh_xfree(cptr->c_text);
+ free(cptr->c_text);
cptr->c_text = p->pq_text;
p->pq_text = NULL;
}
cptr = fmt_findcomp ("error");
if (cptr) {
- mh_xfree(cptr->c_text);
+ free(cptr->c_text);
cptr->c_text = p->pq_error;
p->pq_error = NULL;
}
fputs (charstring_buffer (scanl), stdout);
charstring_free (scanl);
- mh_xfree(p->pq_text);
- mh_xfree(p->pq_error);
+ free(p->pq_text);
+ free(p->pq_error);
q = p->pq_next;
free(p);
}