For example, `return(foo(a, b));' becomes `return foo(a, b);'.
result = sm_wstream (buffer, len);
- return (result == NOTOK ? RP_BHST : RP_OK);
+ return result == NOTOK ? RP_BHST : RP_OK;
}
status = OK;
}
- return (status ? RP_BHST : RP_OK);
+ return status ? RP_BHST : RP_OK;
}
if (tw2->tw_clock == 0)
dmktime (tw2);
- return ((c1 = tw1->tw_clock) > (c2 = tw2->tw_clock) ? 1
- : c1 == c2 ? 0 : -1);
+ return (c1 = tw1->tw_clock) > (c2 = tw2->tw_clock) ? 1
+ : c1 == c2 ? 0 : -1;
}
tw.tw_year += 1900; \
if(tw.tw_year < 1970) \
tw.tw_year += 100; \
- return(&tw)
+ return &tw
/*
* Table to convert month names to numeric month. We use the
default:
arglist_free(prog, vec);
- return (pidwait (pid, -1));
+ return pidwait(pid, -1);
}
}
fd = link(tmpfile, curlock);
(void) m_unlink(tmpfile);
- return (fd == -1 ? -1 : 0);
+ return fd == -1 ? -1 : 0;
}
#endif /* HAVE_LIBLOCKFILE */
delimp = cp;
if (!strcmp (buf, "first"))
- return (mp->hghmsg || !(mp->msgflags & ALLOW_NEW)
- ? mp->lowmsg : BADMSG);
+ return mp->hghmsg || !(mp->msgflags & ALLOW_NEW) ?
+ mp->lowmsg : BADMSG;
if (!strcmp (buf, "last")) {
convdir = -1;
- return (mp->hghmsg || !(mp->msgflags & ALLOW_NEW) ? mp->hghmsg : BADMSG);
+ return mp->hghmsg || !(mp->msgflags & ALLOW_NEW) ? mp->hghmsg : BADMSG;
}
if (!strcmp (buf, "cur") || !strcmp (buf, "."))
- return (mp->curmsg > 0 ? mp->curmsg : BADMSG);
+ return mp->curmsg > 0 ? mp->curmsg : BADMSG;
if (!strcmp (buf, "prev")) {
convdir = -1;
SIGNAL (SIGQUIT, qstat);
}
- return (pid == -1 ? -1 : status);
+ return pid == -1 ? -1 : status;
}
if (interactive < 0)
interactive = isatty (fileno (stdin));
- return (interactive ? read_switch (prompt, anoyes) : 1);
+ return interactive ? read_switch(prompt, anoyes) : 1;
}
default:
arglist_free(program, vec);
- return (pidwait (pid, -1));
+ return pidwait(pid, -1);
}
}
bp += strlen(bp);
}
}
- return (bp > buffer? buffer : NULL);
+ return bp > buffer ? buffer : NULL;
}
*bp = pp;
return 0;
}
- return (ferror (in) && !feof (in) ? -1 : 1);
+ return ferror(in) && !feof(in) ? -1 : 1;
}
if ((dp = cp + strlen (cp) - 2) < cp || *dp != QUOTE) {
if (write (md, MMDF_DELIM, j) != j)
return NOTOK;
- return (i != NOTOK ? OK : NOTOK);
+ return i != NOTOK ? OK : NOTOK;
case MBOX_FORMAT:
if ((j = dup (fd)) == NOTOK)
for (i = 0; i < lused; ++i)
if (addr == lvec[i])
- return(i);
- return(-1);
+ return i;
+ return -1;
}
static void
case FT_V_AMATCH: return "V_AMATCH";
default:
snprintf(buf, sizeof buf, "/* ??? #%d */", t);
- return(buf);
+ return buf;
}
}
FNORD(CT_ADDR, "ADDR");
FNORD(CT_DATE, "DATE");
strcat(buf, ">");
- return(buf);
+ return buf;
}
static char *
FNORD(CF_DATEFAB, "DATEFAB");
FNORD(CF_TRIMMED, "TRIMMED");
strcat(buf, ">");
- return(buf);
+ return buf;
}
#undef FNORD
for (i = 0; i < lused; ++i)
if (addr == lvec[i])
- return(i);
- return(-1);
+ return i;
+ return -1;
}
static void
case FT_V_AMATCH: return "V_AMATCH";
default:
snprintf(buf, sizeof(buf), "/* ??? #%d */", t);
- return(buf);
+ return buf;
}
}
static char buf[64];
snprintb(buf, sizeof(buf), t, CT_BITS);
- return(buf);
+ return buf;
}
static char *
static char buf[64];
snprintb(buf, sizeof(buf), t, CF_BITS);
- return(buf);
+ return buf;
}
static void
}
}
- return (boundaryclash ? NOTOK : OK);
+ return boundaryclash ? NOTOK : OK;
}
arglist_free(file, vec);
if (fd != NOTOK)
(*ct->c_ceclosefnx) (ct);
- return (alternate ? OK : status);
+ return alternate ? OK : status;
}
}
}
fclose (fp);
- return (cc != NOTOK ? OK : NOTOK);
+ return cc != NOTOK ? OK : NOTOK;
}
if (!ct->c_fp && (ct->c_fp = fopen (ct->c_file, "r")) == NULL) {
case OK:
if (poprint)
fprintf (stderr, "<--- %s\n", response);
- return (*response == '+' ? OK : NOTOK);
+ return *response == '+' ? OK : NOTOK;
case NOTOK:
case DONE:
snprintf (buffer, sizeof(buffer), "%s\n", adrformat (mp));
i = strlen (buffer);
- return (write (pfd, buffer, i) == i ? OK : NOTOK);
+ return write(pfd, buffer, i) == i ? OK : NOTOK;
}
static int
chrcnv (char *cp)
{
- return (*cp != QUOTE ? *cp : m_atoi (++cp));
+ return *cp != QUOTE ? *cp : m_atoi(++cp);
}
if (scnout && (ferror(scnout) || fclose (scnout) == EOF))
DIEWRERR();
- return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG);
+ return state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG;
}
}
fclose (fp);
- return (won ? 0 : -1);
+ return won ? 0 : -1;
}
else
pidstatus (status, stdout, ", failed");
}
- return (status == 0 ? 0 : -1);
+ return status == 0 ? 0 : -1;
}
/*
* Ruthlessly kill the child and anything
}
}
s->s_msg = 0;
- return(s - smsgs);
+ return s - smsgs;
}
if ((i = strcmp ((*a)->s_subj, (*b)->s_subj)))
return i;
- return (dsort (a, b));
+ return dsort(a, b);
}
static int