Add some braces to make egcs happy.

This commit is contained in:
thorpej 1998-08-19 00:17:41 +00:00
parent fbfd17276b
commit 7ba69add63
3 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ruserpass.c,v 1.3 1998/07/06 07:01:16 mrg Exp $ */
/* $NetBSD: ruserpass.c,v 1.4 1998/08/19 00:17:41 thorpej Exp $ */
/*
* Copyright (c) 1985, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)ruserpass.c 8.4 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: ruserpass.c,v 1.3 1998/07/06 07:01:16 mrg Exp $");
__RCSID("$NetBSD: ruserpass.c,v 1.4 1998/08/19 00:17:41 thorpej Exp $");
#endif
#endif /* not lint */
@ -152,7 +152,7 @@ next:
while ((t = token()) && t != MACH && t != DEFAULT) switch(t) {
case LOGIN:
if (token())
if (token()) {
if (*aname == NULL) {
*aname = strdup(tokval);
if (*aname == NULL)
@ -161,6 +161,7 @@ next:
if (strcmp(*aname, tokval))
goto next;
}
}
break;
case PASSWD:
if ((*aname == NULL || strcmp(*aname, "anonymous")) &&

View File

@ -1,4 +1,4 @@
/* $NetBSD: cr_put.c,v 1.10 1998/02/03 19:12:19 perry Exp $ */
/* $NetBSD: cr_put.c,v 1.11 1998/08/19 00:20:59 thorpej Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cr_put.c 8.3 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: cr_put.c,v 1.10 1998/02/03 19:12:19 perry Exp $");
__RCSID("$NetBSD: cr_put.c,v 1.11 1998/08/19 00:20:59 thorpej Exp $");
#endif
#endif /* not lint */
@ -107,11 +107,12 @@ fgoto(in_refresh)
outcol %= COLS;
if (AM == 0) {
while (l > 0) {
if (__pfast)
if (__pfast) {
if (CR)
tputs(CR, 0, __cputchar);
else
putchar('\r');
}
if (NL)
tputs(NL, 0, __cputchar);
else

View File

@ -1,4 +1,4 @@
/* $NetBSD: insch.c,v 1.9 1998/02/03 19:12:26 perry Exp $ */
/* $NetBSD: insch.c,v 1.10 1998/08/19 00:20:59 thorpej Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)insch.c 8.2 (Berkeley) 5/4/94";
#else
__RCSID("$NetBSD: insch.c,v 1.9 1998/02/03 19:12:26 perry Exp $");
__RCSID("$NetBSD: insch.c,v 1.10 1998/08/19 00:20:59 thorpej Exp $");
#endif
#endif /* not lint */
@ -70,12 +70,13 @@ winsch(win, ch)
__touchline(win, win->cury, win->curx, win->maxx - 1, 0);
if (win->cury == LINES - 1 &&
(win->lines[LINES - 1]->line[COLS - 1].ch != ' ' ||
win->lines[LINES -1]->line[COLS - 1].attr != 0))
win->lines[LINES -1]->line[COLS - 1].attr != 0)) {
if (win->flags & __SCROLLOK) {
wrefresh(win);
scroll(win);
win->cury--;
} else
return (ERR);
}
return (OK);
}