-Wall cleanup.

This commit is contained in:
Bill Fumerola 1999-12-12 02:29:54 +00:00
parent 0927bf4365
commit fefaab10f0
2 changed files with 6 additions and 4 deletions

View File

@ -171,7 +171,7 @@ show_index()
for (s = next_cat(qp->q_text); s; s = next_cat(s)) {
if (!rxp_compile(s))
err("%s", rxperr);
if (p = rxp_expand())
if ((p = rxp_expand()) != '\0')
(void)fprintf(pf, "%s ", p);
}
(void)fprintf(pf, "\n");
@ -321,12 +321,13 @@ appdstr(s, tp, len)
size_t len;
{
char *mp, *sp;
int ch;
char *m;
if ((m = malloc(strlen(s) + len + 1)) == NULL)
err("%s", strerror(errno));
for (mp = m, sp = s; *mp++ = *sp++;);
mp = m;
sp = s;
for (; (*mp++ = *sp++););
mp--;
if (*(mp - 1) == '\\')
@ -356,7 +357,7 @@ downcase(p)
{
int ch;
for (; ch = *p; ++p)
for (; (ch = *p); ++p)
if (isascii(ch) && isupper(ch))
*p = tolower(ch);
}

View File

@ -212,6 +212,7 @@ rxp__match(s, first, j_succ, j_fail, sp_fail)
Rxp_t *grp_end;
int err;
grp_end = NULL;
if (first) {
rp = rxpbuf;
sp = s;