while ((cp = getname (pp))) {
if ((np = getm (cp, NULL, 0, norm, NULL)) == NULL)
continue;
- if (!mh_strcasecmp (mp->m_host, np->m_host)
- && !mh_strcasecmp (mp->m_mbox, np->m_mbox)) {
+ if (!strcasecmp (mp->m_host ? mp->m_host : "",
+ np->m_host ? np->m_host : "") &&
+ !strcasecmp (mp->m_mbox ? mp->m_mbox : "",
+ np->m_mbox ? np->m_mbox : "")) {
vp = vp ? add (ak->ak_name, add (",", vp))
: getcpy (ak->ak_name);
mnfree (np);
return 0;
for (mp = &mq; mp->m_next; mp = mp->m_next) {
- if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
- && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox))
+ if (!strcasecmp (np->m_host ? np->m_host : "",
+ mp->m_next->m_host ? mp->m_next->m_host : "") &&
+ !strcasecmp (np->m_mbox ? np->m_mbox : "",
+ mp->m_next->m_mbox ? mp->m_next->m_mbox : ""))
return 0;
}
if (!ccme && ismymbox (np))
snprintf (buffer, sizeof(buffer), "%s/%s", ci->ci_type, ci->ci_subtype);
for (ap = types; *ap; ap++)
- if (!mh_strcasecmp (*ap, ci->ci_type) || !mh_strcasecmp (*ap, buffer))
+ if (!strcasecmp (*ap, ci->ci_type) || !strcasecmp (*ap, buffer))
return 1;
return 0;
struct proc *ps;
for (ps = procs; ps->p_name; ps++)
- if (!mh_strcasecmp (ps->p_name, str))
+ if (!strcasecmp (ps->p_name, str ? str : ""))
return (*ps->p_field);
return NULL;
switch (state = m_getfld (&gstate, name, buf, &bufsz, zp)) {
case FLD:
case FLDPLUS:
- if (!mh_strcasecmp (name, BBoard_ID)) {
+ if (!strcasecmp (name, BBoard_ID)) {
bp = getcpy (buf);
while (state == FLDPLUS) {
bufsz = sizeof buf;
register struct tws *tw;
time (&clock);
- if (!mh_strcasecmp (ap, "today"))
+ if (!strcasecmp (ap, "today"))
return dlocaltime (&clock);
- if (!mh_strcasecmp (ap, "yesterday")) {
+ if (!strcasecmp (ap, "yesterday")) {
clock -= (long) (60 * 60 * 24);
return dlocaltime (&clock);
}
- if (!mh_strcasecmp (ap, "tomorrow")) {
+ if (!strcasecmp (ap, "tomorrow")) {
clock += (long) (60 * 60 * 24);
return dlocaltime (&clock);
}
for (i = 0; tw_ldotw[i]; i++)
- if (!mh_strcasecmp (ap, tw_ldotw[i]))
+ if (!strcasecmp (ap, tw_ldotw[i]))
break;
if (tw_ldotw[i]) {
if ((tw = dlocaltime (&clock)) == NULL)
state = m_getfld (&gstate, name, buf, &bufsz, fp);
bp = add (buf, bp);
}
- if (!mh_strcasecmp (name, n->n_datef))
+ if (!strcasecmp (name, n->n_datef))
break;
continue;
struct headers *h;
for (h = table; h->value; h++)
- if (!mh_strcasecmp (header, h->value))
+ if (!strcasecmp (header ? header : "", h->value ? h->value : ""))
return (h - table);
return NOTOK;
: &netaddrs;
mp->m_next;
mp = mp->m_next)
- if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
- && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox)
- && np->m_bcc == mp->m_next->m_bcc)
+ if (!strcasecmp (np->m_host ? np->m_host : "",
+ mp->m_next->m_host ? mp->m_next->m_host : "") &&
+ !strcasecmp (np->m_mbox ? np->m_mbox : "",
+ mp->m_next->m_mbox ? mp->m_next->m_mbox : "") &&
+ np->m_bcc == mp->m_next->m_bcc)
return 0;
mp->m_next = np;
return 0;
for (mp = &mq; mp->m_next; mp = mp->m_next) {
- if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
- && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox))
+ if (!strcasecmp (np->m_host ? np->m_host : "",
+ mp->m_next->m_host ? mp->m_next->m_host : "") &&
+ !strcasecmp (np->m_mbox ? np->m_mbox : "",
+ mp->m_next->m_mbox ? mp->m_next->m_mbox : ""))
return 0;
}
if (!ccme && ismymbox (np))
case FLD:
case FLDPLUS:
compnum++;
- if (!mh_strcasecmp (nam, datesw)) {
+ if (!strcasecmp (nam, datesw)) {
datecomp = add (buf, datecomp);
while (state == FLDPLUS) {
bufsz = sizeof buf;
}
if (!subjsort || subjcomp)
break;
- } else if (subjsort && !mh_strcasecmp (nam, subjsort)) {
+ } else if (subjsort && !strcasecmp (nam, subjsort)) {
subjcomp = add (buf, subjcomp);
while (state == FLDPLUS) {
bufsz = sizeof buf;