summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
459c5e3)
Just outer parenthesis removed.
25 files changed:
/* Check nmh `etc' directory */
snprintf (epath, sizeof(epath), nmhetcdir(/%s), file);
/* Check nmh `etc' directory */
snprintf (epath, sizeof(epath), nmhetcdir(/%s), file);
- return (access (epath, R_OK) != NOTOK ? epath : file);
+ return access(epath, R_OK) != NOTOK ? epath : file;
str = FENDNULL(str);
for (np = m_defs; np; np = np->n_next)
if (!strcasecmp(FENDNULL(np->n_name), str))
str = FENDNULL(str);
for (np = m_defs; np; np = np->n_next)
if (!strcasecmp(FENDNULL(np->n_name), str))
static int did_message = 0; /* set if we've already output a message */
if ((hook = context_find(hook_name)) == NULL)
static int did_message = 0; /* set if we've already output a message */
if ((hook = context_find(hook_name)) == NULL)
switch (pid = fork()) {
case -1:
switch (pid = fork()) {
case -1:
*dst = '\0';
last_dst = dst;
*dst = '\0';
last_dst = dst;
}
char *concataddr (char *orig, char *str)
}
char *concataddr (char *orig, char *str)
*fmt = formatvec;
free(format_string);
*fmt = formatvec;
free(format_string);
switch (c = *++cp) {
case '%':
switch (c = *++cp) {
case '%':
case '>':
case '?':
case ']':
case '>':
case '?':
case ']':
case '<':
cp = do_if(++cp);
case '<':
cp = do_if(++cp);
fp->f_width = wid;
fp->f_fill = fill;
fp->f_width = wid;
fp->f_fill = fill;
cm->c_type |= CT_ADDR;
break;
}
cm->c_type |= CT_ADDR;
break;
}
CERROR("')' expected");
}
--infunction;
CERROR("')' expected");
}
--infunction;
} else if (c == '(') {
cp = do_func (cp);
} else if (c == ')') {
} else if (c == '(') {
cp = do_func (cp);
} else if (c == ')') {
} else if (c == '%' && *cp == '<') {
cp = do_if (cp+1);
} else {
CERROR ("'(', '{', '%<' or ')' expected");
}
} else if (c == '%' && *cp == '<') {
cp = do_if (cp+1);
} else {
CERROR ("'(', '{', '%<' or ')' expected");
}
if (fexpr) /* IF ... [ELSIF ...] ENDIF */
fexpr->f_skip = next_fp - fexpr;
if (fexpr) /* IF ... [ELSIF ...] ENDIF */
fexpr->f_skip = next_fp - fexpr;
{
if (hexindex[byte1] == -1 || hexindex[byte2] == -1)
return -1;
{
if (hexindex[byte1] == -1 || hexindex[byte2] == -1)
return -1;
- return (hexindex[byte1] << 4 | hexindex[byte2]);
+ return hexindex[byte1] << 4 | hexindex[byte2];
}
/* Check if character is linear whitespace */
}
/* Check if character is linear whitespace */
for (t = toktabs; t->tokstr; t++)
if (!strcmp(t->tokstr, tokval))
for (t = toktabs; t->tokstr; t++)
if (!strcmp(t->tokstr, tokval))
if (!strcmp (current, seqname)) {
if (mp->curmsg) {
snprintf(buffer, len, "%s", m_name(mp->curmsg));
if (!strcmp (current, seqname)) {
if (mp->curmsg) {
snprintf(buffer, len, "%s", m_name(mp->curmsg));
}
/* If the folder is empty, just return NULL */
}
/* If the folder is empty, just return NULL */
# endif
}
if (sigaction(sig, &act, &oact) < 0)
# endif
}
if (sigaction(sig, &act, &oact) < 0)
- return (SIG_ERR);
- return (oact.sa_handler);
+ return SIG_ERR;
+ return oact.sa_handler;
struct sigaction act, oact;
if (sigaction(sig, NULL, &oact) < 0)
struct sigaction act, oact;
if (sigaction(sig, NULL, &oact) < 0)
if (oact.sa_handler != SIG_IGN) {
act.sa_handler = func;
sigemptyset(&act.sa_mask);
if (oact.sa_handler != SIG_IGN) {
act.sa_handler = func;
sigemptyset(&act.sa_mask);
# endif
}
if (sigaction(sig, &act, &oact) < 0)
# endif
}
if (sigaction(sig, &act, &oact) < 0)
- return (oact.sa_handler);
+ return oact.sa_handler;
for (p = p2; *p; p++)
if (uprf (p, p1))
for (p = p2; *p; p++)
if (uprf (p, p1))
- return (*aliasent == 0 || *aliasent == '*');
+ return *aliasent == 0 || *aliasent == '*';
adios (msgnam, "does not have any message/rfc822 parts");
if (msgp > 1) {
*mimesw = 1;
adios (msgnam, "does not have any message/rfc822 parts");
if (msgp > 1) {
*mimesw = 1;
- return (msgp - 1); /* return the number of messages burst */
+ return msgp - 1; /* return the number of messages burst */
*dst = '\0';
last_dst = dst;
*dst = '\0';
last_dst = dst;
for (ap = pairs; ap->p_name; ap++)
if (!strcasecmp (ap->p_name, name))
for (ap = pairs; ap->p_name; ap++)
if (!strcasecmp (ap->p_name, name))
for (ps = procs; ps->p_name; ps++)
if (!strcasecmp (ps->p_name, str))
for (ps = procs; ps->p_name; ps++)
if (!strcasecmp (ps->p_name, str))
}
if (ct->c_encoding == CE_EXTERNAL)
}
if (ct->c_encoding == CE_EXTERNAL)
- return (ct->c_end - ct->c_begin);
+ return ct->c_end - ct->c_begin;
file = NULL;
if ((fd = (*ct->c_ceopenfnx) (ct, &file)) == NOTOK)
file = NULL;
if ((fd = (*ct->c_ceopenfnx) (ct, &file)) == NOTOK)
- return (ct->c_end - ct->c_begin);
+ return ct->c_end - ct->c_begin;
if (fstat (fd, &st) != NOTOK)
size = (long) st.st_size;
if (fstat (fd, &st) != NOTOK)
size = (long) st.st_size;
struct partial *am = (struct partial *) ((*a)->c_ctparams);
struct partial *bm = (struct partial *) ((*b)->c_ctparams);
struct partial *am = (struct partial *) ((*a)->c_ctparams);
struct partial *bm = (struct partial *) ((*b)->c_ctparams);
- return (am->pm_marked - bm->pm_marked);
+ return am->pm_marked - bm->pm_marked;
do {
lp--;
if (advance ((char *) lp, (char *) ep))
do {
lp--;
if (advance ((char *) lp, (char *) ep))
} while (lp > curlp);
return 0;
} while (lp > curlp);
return 0;
set = aset;
if ((c = ac) == 0)
set = aset;
if ((c = ac) == 0)
n = *set++;
while (n--)
if (*set++ == c || set[-1] == cc[c])
n = *set++;
while (n--)
if (*set++ == c || set[-1] == cc[c])
header = FENDNULL(header);
for (h = table; h->value; h++)
if (!strcasecmp(FENDNULL(h->value), header))
header = FENDNULL(header);
for (h = table; h->value; h++)
if (!strcasecmp(FENDNULL(h->value), header))
*dst = '\0';
last_dst = dst;
*dst = '\0';
last_dst = dst;
if ((in = fopen (msgnam = m_name (msg), "r")) == NULL) {
admonish (msgnam, "unable to read message");
if ((in = fopen (msgnam = m_name (msg), "r")) == NULL) {
admonish (msgnam, "unable to read message");
}
gstate = m_getfld_state_init(in);
for (compnum = 1;;) {
}
gstate = m_getfld_state_init(in);
for (compnum = 1;;) {
free(datecomp);
free(subjcomp);
fclose (in);
free(datecomp);
free(subjcomp);
fclose (in);
default:
adios (NULL, "internal error -- you lose");
default:
adios (NULL, "internal error -- you lose");
fclose (in);
free(datecomp);
fclose (in);
free(datecomp);
dsort (struct smsg **a, struct smsg **b)
{
if ((*a)->s_clock < (*b)->s_clock)
dsort (struct smsg **a, struct smsg **b)
{
if ((*a)->s_clock < (*b)->s_clock)
if ((*a)->s_clock > (*b)->s_clock)
if ((*a)->s_clock > (*b)->s_clock)
if ((*a)->s_msg < (*b)->s_msg)
if ((*a)->s_msg < (*b)->s_msg)
- return (-1);
- return (1);
int i;
if ((i = strcmp ((*a)->s_subj, (*b)->s_subj)))
int i;
if ((i = strcmp ((*a)->s_subj, (*b)->s_subj)))
int i;
if ((i = strcmp ((*a)->s_subj, (*b)->s_subj)))
int i;
if ((i = strcmp ((*a)->s_subj, (*b)->s_subj)))
if ((*a)->s_msg < (*b)->s_msg)
if ((*a)->s_msg < (*b)->s_msg)
- return (-1);
- return (1);
i = editfile (&ed, args, file, NOUSE, NULL, NULL, NULL, 0, 0);
free (args);
i = editfile (&ed, args, file, NOUSE, NULL, NULL, NULL, 0, 0);
free (args);
- return (i ? NOTOK : OK);
_exit (-1); /* NOTREACHED */
default:
_exit (-1); /* NOTREACHED */
default:
- return (pidwait (pid, NOTOK) & 0377 ? 1 : 0);
+ return pidwait(pid, NOTOK) & 0377 ? 1 : 0;
if ((f = fopen(drft, "r")) == NULL) {
admonish(drft, "unable to read draft");
if ((f = fopen(drft, "r")) == NULL) {
admonish(drft, "unable to read draft");
}
gstate = m_getfld_state_init(f);
}
gstate = m_getfld_state_init(f);