From: Pierre Habouzit Date: Mon, 18 Dec 2006 18:12:03 +0000 (+0100) Subject: simplifications X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=2289f2d4ca4b2c6ab355c5b72b954a93c56a0c51;p=apps%2Fmadmutt.git simplifications Signed-off-by: Pierre Habouzit --- diff --git a/lib-ui/hdrline.c b/lib-ui/hdrline.c index 92e6fa6..e0047a5 100644 --- a/lib-ui/hdrline.c +++ b/lib-ui/hdrline.c @@ -12,13 +12,13 @@ #include #include #include +#include #include "mutt.h" #include "alias.h" #include "sort.h" #include "thread.h" #include "charset.h" -#include #include "mutt_idna.h" int mutt_is_mail_list (address_t * addr) @@ -578,9 +578,7 @@ hdr_format_str(char *dest, ssize_t destlen, case 'T': snprintf (fmt, sizeof (fmt), "%%%sc", prefix); snprintf (dest, destlen, fmt, - (Tochars - && ((i = mutt_user_is_recipient (hdr))) < - m_strlen(Tochars)) ? Tochars[i] : ' '); + ((i = mutt_user_is_recipient(hdr)) < m_strlen(Tochars)) ? Tochars[i] : ' '); break; case 'u': @@ -657,8 +655,7 @@ hdr_format_str(char *dest, ssize_t destlen, hdr->deleted ? 'D' : (hdr->attach_del ? 'd' : ch), hdr->tagged ? '*' : (hdr->flagged ? '!' - : (Tochars && ((i = mutt_user_is_recipient(hdr)) < m_strlen(Tochars)) - ? Tochars[i] : ' '))); + : ((i = mutt_user_is_recipient(hdr)) < m_strlen(Tochars) ? Tochars[i] : ' '))); mutt_format_s (dest, destlen, prefix, buf2); break;