* complete copyright information.
*/
-#include <h/mh.h>
+#include "h/mh.h"
+#include "sbr/error.h"
+#include "h/done.h"
/*
what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist,
struct msgs *mp, char *text, int inplace, char *cwd, int atfile)
{
- int found, k, msgnum, vecp;
+ bool found;
+ int k, msgnum, vecp;
int len, buflen;
char *bp;
char buffer[BUFSIZ], *vec[MAXARGS];
unsetenv("mhinplace");
if (text && mp && !is_readonly(mp)) {
- found = 0;
+ found = false;
bp = buffer;
buflen = sizeof(buffer);
for (msgnum = mp->lowmsg; msgnum <= mp->hghmsg; msgnum++) {
buflen -= len;
}
msgnum = k + 1;
- found++;
+ found = true;
}
}
if (found) {