Add some braces to make egcs happy.

This commit is contained in:
thorpej 1998-08-25 04:43:46 +00:00
parent 2cffea3962
commit 9f42788795
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: iso_snpac.c,v 1.19 1998/07/05 04:37:43 jonathan Exp $ */
/* $NetBSD: iso_snpac.c,v 1.20 1998/08/25 04:43:46 thorpej Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -262,13 +262,14 @@ iso_setmcasts(ifp, req)
bzero((caddr_t) & ifr, sizeof(ifr));
for (cpp = (caddr_t *) addrlist; *cpp; cpp++) {
bcopy(*cpp, (caddr_t) ifr.ifr_addr.sa_data, 6);
if (req == RTM_ADD)
if (req == RTM_ADD) {
if (ether_addmulti(&ifr, (struct ethercom *)ifp)
== ENETRESET)
doreset++;
else if (ether_delmulti(&ifr, (struct ethercom *)ifp)
== ENETRESET)
doreset++;
}
}
if (doreset) {
if (ifp->if_reset)

View File

@ -1,4 +1,4 @@
/* $NetBSD: lfs_subr.c,v 1.6 1998/03/01 02:23:25 fvdl Exp $ */
/* $NetBSD: lfs_subr.c,v 1.7 1998/08/25 04:52:38 thorpej Exp $ */
/*
* Copyright (c) 1991, 1993
@ -99,7 +99,7 @@ lfs_seglock(fs, flags)
struct segment *sp;
int s;
if (fs->lfs_seglock)
if (fs->lfs_seglock) {
if (fs->lfs_lockpid == curproc->p_pid) {
++fs->lfs_seglock;
fs->lfs_sp->seg_flags |= flags;
@ -107,6 +107,7 @@ lfs_seglock(fs, flags)
} else while (fs->lfs_seglock)
(void)tsleep(&fs->lfs_seglock, PRIBIO + 1,
"lfs seglock", 0);
}
fs->lfs_seglock = 1;
fs->lfs_lockpid = curproc->p_pid;