X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b40ecb4417e49cbc53459b28ee394a3b2eb93c9c..8f460dd07d9ededc2c2b2a8dc99f025f494716f9:/uip/replsbr.c diff --git a/uip/replsbr.c b/uip/replsbr.c index fe79c295..e63ce755 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -384,10 +384,10 @@ insert (struct mailname *np) return 0; for (mp = &mq; mp->m_next; mp = mp->m_next) { - 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 : "")) + if (!strcasecmp (FENDNULL(np->m_host), + FENDNULL(mp->m_next->m_host)) && + !strcasecmp (FENDNULL(np->m_mbox), + FENDNULL(mp->m_next->m_mbox))) return 0; } if (!ccme && ismymbox (np)) @@ -426,7 +426,7 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc) adios (filter, "unable to read"); rewind (in); - lseek (fileno(in), (off_t) 0, SEEK_SET); + lseek(fileno(in), 0, SEEK_SET); arglist = argsplit(mhlproc, &mhl, &argnum);