*
*/
-#include <h/mh.h>
-#include <h/addrsbr.h>
-#include <h/tws.h>
-#include <h/fmt_scan.h>
-#include <h/fmt_compile.h>
-#include <h/mts.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "error.h"
+#include "h/addrsbr.h"
+#include "h/tws.h"
+#include "h/fmt_scan.h"
+#include "h/fmt_compile.h"
+#include "h/mts.h"
+#include "h/utils.h"
#include "terminal.h"
#ifdef HAVE_SYS_TIME_H
{
char *cp = sp;
int c;
- int ljust = 0;
+ bool ljust = false;
int wid = 0;
char fill = ' ';
c = *cp++;
if (c == '-') {
- ljust++;
+ ljust = true;
c = *cp++;
}
if (c == '0') {
char *cp = sp;
int c;
int i;
- static int primed = 0;
+ static bool primed;
while (isalnum(c = *cp++) || c == '-' || c == '_')
;
case FT_GETMYADDR:
if (!primed) {
ismymbox(NULL);
- primed++;
+ primed = true;
}
/* FALLTHRU */
case FT_PARSEADDR:
int
fmt_addcomptext(char *component, char *text)
{
- int i, found = 0, bucket = CHASH(component);
+ int i;
+ bool found = false;
+ int bucket = CHASH(component);
struct comp *cptr = wantcomp[bucket];
char *cp;
while (cptr) {
if (strcasecmp(component, FENDNULL(cptr->c_name)) == 0) {
- found++;
+ found = true;
if (! cptr->c_text) {
cptr->c_text = getcpy(text);
} else {