summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
70637f3)
No functional change intended.
snprintf (buffer, sizeof(buffer), "%s <%s>",
legal_person (mp->m_pers ? mp->m_pers : mp->m_mbox),
addr);
snprintf (buffer, sizeof(buffer), "%s <%s>",
legal_person (mp->m_pers ? mp->m_pers : mp->m_mbox),
addr);
+ } else if (mp->m_note)
+ snprintf (buffer, sizeof(buffer), "%s %s", addr, mp->m_note);
- if (mp->m_note)
- snprintf (buffer, sizeof(buffer), "%s %s", addr, mp->m_note);
- else
- strncpy (buffer, addr, sizeof(buffer));
+ strncpy (buffer, addr, sizeof(buffer));
ep = pwds + strlen (pwds);
if ((cp = strrchr(pwds, '/')) == NULL)
cp = ep;
ep = pwds + strlen (pwds);
if ((cp = strrchr(pwds, '/')) == NULL)
cp = ep;
- else
- if (cp == pwds)
- cp++;
+ else if (cp == pwds)
+ cp++;
if (has_prefix(name, CWD))
name += LEN(CWD);
if (has_prefix(name, CWD))
name += LEN(CWD);
if (cp == NULL)
cp = addrs;
if (cp == NULL)
cp = addrs;
- else
- if (*cp == 0)
- return (cp = NULL);
+ else if (*cp == 0)
+ return (cp = NULL);
/* Remove leading any space from the address. */
for (pp = cp; isspace ((unsigned char) *pp); pp++)
/* Remove leading any space from the address. */
for (pp = cp; isspace ((unsigned char) *pp); pp++)
c1->c_nfs = mh_xstrdup(global.c_nfs);
compile_formatfield(c1);
}
c1->c_nfs = mh_xstrdup(global.c_nfs);
compile_formatfield(c1);
}
- }
- else
- if (c1->c_flags & ADDRFMT) {
- if (global.c_flags & ADDRFMT) {
- c1->c_nfs = mh_xstrdup(global.c_nfs);
- compile_formatfield(c1);
- }
- }
+ } else if (c1->c_flags & ADDRFMT) {
+ if (global.c_flags & ADDRFMT) {
+ c1->c_nfs = mh_xstrdup(global.c_nfs);
+ compile_formatfield(c1);
+ }
+ }
sizeof digest))
content_error (NULL, ct,
"content integrity suspect (digest mismatch) -- continuing");
sizeof digest))
content_error (NULL, ct,
"content integrity suspect (digest mismatch) -- continuing");
- else
- if (debugsw)
- fprintf (stderr, "content integrity confirmed\n");
+ else if (debugsw)
+ fprintf (stderr, "content integrity confirmed\n");
}
fseek (ce->ce_fp, 0L, SEEK_SET);
}
fseek (ce->ce_fp, 0L, SEEK_SET);
if (ferror (gp)) {
admonish (ce->ce_file, "error reading");
(void) m_unlink (cachefile);
if (ferror (gp)) {
admonish (ce->ce_file, "error reading");
(void) m_unlink (cachefile);
- }
- else
- if (ferror (fp)) {
- admonish (cachefile, "error writing");
- (void) m_unlink (cachefile);
- }
+ } else if (ferror (fp)) {
+ admonish (cachefile, "error writing");
+ (void) m_unlink (cachefile);
+ }
fclose (fp);
}
umask (mask);
fclose (fp);
}
umask (mask);
if (ferror (gp)) {
admonish (ce->ce_file, "error reading");
(void) m_unlink (cachefile);
if (ferror (gp)) {
admonish (ce->ce_file, "error reading");
(void) m_unlink (cachefile);
- }
- else
- if (ferror (fp)) {
- admonish (cachefile, "error writing");
- (void) m_unlink (cachefile);
- }
+ } else if (ferror (fp)) {
+ admonish (cachefile, "error writing");
+ (void) m_unlink (cachefile);
+ }
fclose (fp);
}
umask (mask);
fclose (fp);
}
umask (mask);
mp->m_bcc++;
if (np->m_ingrp)
mp->m_ingrp = np->m_ingrp;
mp->m_bcc++;
if (np->m_ingrp)
mp->m_ingrp = np->m_ingrp;
- else
- if (mp->m_gname)
- putgrp (namep, mp->m_gname, out, hdr->flags);
+ else if (mp->m_gname)
+ putgrp (namep, mp->m_gname, out, hdr->flags);
if (mp->m_ingrp) {
if (sm_mts == MTS_SENDMAIL_PIPE) {
/* Catch this before sendmail chokes with:
if (mp->m_ingrp) {
if (sm_mts == MTS_SENDMAIL_PIPE) {
/* Catch this before sendmail chokes with:
while (find_prefix () == NOTOK) {
if (*cp < 'z')
(*cp)++;
while (find_prefix () == NOTOK) {
if (*cp < 'z')
(*cp)++;
- else
- if (*++cp == 0)
- adios (NULL, "can't find a unique delimiter string");
- else
- (*cp)++;
+ else if (*++cp == 0)
+ adios (NULL, "can't find a unique delimiter string");
+ else
+ (*cp)++;
}
fprintf (out, "%s: %s\n%s: multipart/digest; boundary=\"",
}
fprintf (out, "%s: %s\n%s: multipart/digest; boundary=\"",
if (debugsw)
inform("temporary file %s selected", tfile);
if (debugsw)
inform("temporary file %s selected", tfile);
- else
- if (m_unlink (tfile) == NOTOK)
- advise (tfile, "unable to remove");
+ else if (m_unlink (tfile) == NOTOK)
+ advise (tfile, "unable to remove");
if (verbose) {
if (status == 0)
verbose_printf (", success.\n");
if (verbose) {
if (status == 0)
verbose_printf (", success.\n");
- else
- if ((status & 0xff00) == 0xff00)
- verbose_printf (", system error\n");
- else
- pidstatus (status, stdout, ", failed");
+ else if ((status & 0xff00) == 0xff00)
+ verbose_printf (", system error\n");
+ else
+ pidstatus (status, stdout, ", failed");
}
return (status == 0 ? 0 : -1);
}
}
return (status == 0 ? 0 : -1);
}