X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpicksbr.c;h=a7276d78febe3b352327bad7730caf7d62d04083;hb=2f9092c19632024cc7c868612b82c603b7db534f;hp=ebebf6c3f7a5a845c012316e7a394f16842a1f90;hpb=7879ea4084333b448c5a3a49c1cb52023e3808d1;p=mmh diff --git a/uip/picksbr.c b/uip/picksbr.c index ebebf6c..a7276d7 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -3,11 +3,16 @@ * picksbr.c -- routines to help pick along... * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include #include +#include #ifdef TIME_WITH_SYS_TIME # include @@ -864,19 +869,19 @@ tws_special (char *ap) register struct tws *tw; time (&clock); - if (!strcasecmp (ap, "today")) + if (!mh_strcasecmp (ap, "today")) return dlocaltime (&clock); - if (!strcasecmp (ap, "yesterday")) { + if (!mh_strcasecmp (ap, "yesterday")) { clock -= (long) (60 * 60 * 24); return dlocaltime (&clock); } - if (!strcasecmp (ap, "tomorrow")) { + if (!mh_strcasecmp (ap, "tomorrow")) { clock += (long) (60 * 60 * 24); return dlocaltime (&clock); } for (i = 0; tw_ldotw[i]; i++) - if (!strcasecmp (ap, tw_ldotw[i])) + if (!mh_strcasecmp (ap, tw_ldotw[i])) break; if (tw_ldotw[i]) { if ((tw = dlocaltime (&clock)) == NULL) @@ -917,7 +922,7 @@ plist state = m_getfld (state, name, buf, sizeof buf, fp); bp = add (buf, bp); } - if (!strcasecmp (name, n->n_datef)) + if (!mh_strcasecmp (name, n->n_datef)) break; if (state != FLDEOF) continue;