summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/trap.c5
-rw-r--r--sys/dev/lnc/if_lnc.c6
-rw-r--r--sys/dev/mse/mse.c6
-rw-r--r--sys/dev/pdq/pdq.c5
-rw-r--r--sys/dev/snp/snp.c4
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c5
-rw-r--r--sys/fs/msdosfs/msdosfs_vnops.c6
-rw-r--r--sys/i386/i386/trap.c5
-rw-r--r--sys/i386/i386/userconfig.c7
-rw-r--r--sys/i386/ibcs2/ibcs2_fcntl.c8
-rw-r--r--sys/i386/isa/asc.c6
-rw-r--r--sys/i386/isa/if_lnc.c6
-rw-r--r--sys/i386/isa/if_ze.c6
-rw-r--r--sys/i386/isa/mse.c6
-rw-r--r--sys/i386/isa/pcaudio.c6
-rw-r--r--sys/i386/isa/random_machdep.c6
-rw-r--r--sys/i386/isa/sound/audio.c6
-rw-r--r--sys/i386/isa/sound/gus_wave.c6
-rw-r--r--sys/i386/isa/sound/pas2_mixer.c4
-rw-r--r--sys/i386/isa/sound/sb_dsp.c12
-rw-r--r--sys/i386/isa/sound/sequencer.c8
-rw-r--r--sys/i386/isa/tw.c4
-rw-r--r--sys/kern/kern_malloc.c5
-rw-r--r--sys/kern/kern_proc.c8
-rw-r--r--sys/kern/kern_random.c6
-rw-r--r--sys/kern/kern_shutdown.c7
-rw-r--r--sys/kern/subr_log.c6
-rw-r--r--sys/kern/subr_trap.c5
-rw-r--r--sys/kern/tty.c9
-rw-r--r--sys/kern/tty_snoop.c4
-rw-r--r--sys/msdosfs/msdosfs_vfsops.c5
-rw-r--r--sys/msdosfs/msdosfs_vnops.c6
-rw-r--r--sys/net/if_tun.c4
-rw-r--r--sys/net/if_var.h12
-rw-r--r--sys/net/route.h12
-rw-r--r--sys/netinet/if_ether.c5
-rw-r--r--sys/netinet/ip_mroute.c9
-rw-r--r--sys/netinet/tcp_input.c5
-rw-r--r--sys/netinet/tcp_reass.c5
-rw-r--r--sys/nfs/nfs_serv.c5
-rw-r--r--sys/nfs/nfs_vnops.c5
-rw-r--r--sys/nfsclient/nfs_vnops.c5
-rw-r--r--sys/nfsserver/nfs_serv.c5
-rw-r--r--sys/pci/if_tl.c12
-rw-r--r--sys/ufs/ffs/ffs_alloc.c5
45 files changed, 157 insertions, 126 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index c0807b0..411d67f 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.135 1999/04/19 14:14:13 peter Exp $
+ * $Id: trap.c,v 1.136 1999/04/28 01:03:26 luoqi Exp $
*/
/*
@@ -1091,11 +1091,12 @@ syscall(frame)
default:
bad:
- if (p->p_sysent->sv_errsize)
+ if (p->p_sysent->sv_errsize) {
if (error >= p->p_sysent->sv_errsize)
error = -1; /* XXX */
else
error = p->p_sysent->sv_errtbl[error];
+ }
frame.tf_eax = error;
frame.tf_eflags |= PSL_C;
break;
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index b02c065..c102444 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_lnc.c,v 1.56 1999/04/18 01:37:19 paul Exp $
+ * $Id: if_lnc.c,v 1.57 1999/04/18 01:49:16 paul Exp $
*/
/*
@@ -1708,13 +1708,13 @@ lnc_start(struct ifnet *ifp)
*/
- if (no_entries_needed > (NDESC(sc->ntdre) - sc->pending_transmits))
+ if (no_entries_needed > (NDESC(sc->ntdre) - sc->pending_transmits)) {
if (!(head = chain_to_cluster(head))) {
log(LOG_ERR, "lnc%d: Couldn't get mbuf for transmit packet -- Resetting \n ",ifp->if_unit);
lnc_reset(sc);
return;
}
- else if ((sc->nic.ic == LANCE) || (sc->nic.ic == C_LANCE)) {
+ } else if ((sc->nic.ic == LANCE) || (sc->nic.ic == C_LANCE)) {
if ((head->m_len < 100) && (head->m_next)) {
len = 100 - head->m_len;
if (M_TRAILINGSPACE(head) < len) {
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c
index 836ec9c..001da0c 100644
--- a/sys/dev/mse/mse.c
+++ b/sys/dev/mse/mse.c
@@ -11,7 +11,7 @@
* this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * $Id: mse.c,v 1.39 1998/10/22 05:58:39 bde Exp $
+ * $Id: mse.c,v 1.40 1999/04/28 10:52:43 dt Exp $
*/
/*
* Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
@@ -528,7 +528,7 @@ msepoll(dev, events, p)
int revents = 0;
s = spltty();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (sc->sc_bytesread != sc->mode.packetsize ||
sc->sc_deltax != 0 || sc->sc_deltay != 0 ||
(sc->sc_obuttons ^ sc->sc_buttons) != 0)
@@ -540,7 +540,7 @@ msepoll(dev, events, p)
*/
selrecord(p, &sc->sc_selp);
}
-
+ }
splx(s);
return (revents);
}
diff --git a/sys/dev/pdq/pdq.c b/sys/dev/pdq/pdq.c
index 1a8fcae..cb0e531 100644
--- a/sys/dev/pdq/pdq.c
+++ b/sys/dev/pdq/pdq.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pdq.c,v 1.2 1997/01/17 23:54:31 joerg Exp $
+ * $Id: pdq.c,v 1.3 1999/01/27 19:35:33 dillon Exp $
*
*/
@@ -752,8 +752,9 @@ pdq_process_received_data(
status.rxs_rcc_reason, status.rxs_fsc, status.rxs_fsb_e));
if (status.rxs_rcc_reason == 7)
goto discard_frame;
- if (status.rxs_rcc_reason != 0)
+ if (status.rxs_rcc_reason != 0) {
/* hardware fault */
+ }
if (status.rxs_rcc_badcrc) {
printf(PDQ_OS_PREFIX " MAC CRC error (source=%x-%x-%x-%x-%x-%x)\n",
PDQ_OS_PREFIX_ARGS,
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c
index 0a1438d..ebffb2a 100644
--- a/sys/dev/snp/snp.c
+++ b/sys/dev/snp/snp.c
@@ -497,12 +497,12 @@ snppoll(dev, events, p)
* Caller should see if we down via FIONREAD ioctl().The last should
* return -1 to indicate down state.
*/
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (snp->snp_flags & SNOOP_DOWN || snp->snp_len > 0)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &snp->snp_sel);
-
+ }
return (revents);
}
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 1014629..4fcbe0b 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.40 1999/01/27 22:42:09 dillon Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.41 1999/03/28 23:00:33 dt Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -886,12 +886,13 @@ msdosfs_sync(mp, waitfor, cred, p)
* If we ever switch to not updating all of the fats all the time,
* this would be the place to update them from the first one.
*/
- if (pmp->pm_fmod != 0)
+ if (pmp->pm_fmod != 0) {
if (pmp->pm_flags & MSDOSFSMNT_RONLY)
panic("msdosfs_sync: rofs mod");
else {
/* update fats here */
}
+ }
/*
* Write back each (modified) denode.
*/
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
index 108aab0..e8678ab 100644
--- a/sys/fs/msdosfs/msdosfs_vnops.c
+++ b/sys/fs/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vnops.c,v 1.82 1999/04/27 11:16:51 phk Exp $ */
+/* $Id: msdosfs_vnops.c,v 1.83 1999/04/28 11:37:27 phk Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
/*-
@@ -1762,12 +1762,12 @@ out:
/*
* Set the eofflag (NFS uses it)
*/
- if (ap->a_eofflag)
+ if (ap->a_eofflag) {
if (dep->de_FileSize - (offset - bias) <= 0)
*ap->a_eofflag = 1;
else
*ap->a_eofflag = 0;
-
+ }
return (error);
}
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index c0807b0..411d67f 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.135 1999/04/19 14:14:13 peter Exp $
+ * $Id: trap.c,v 1.136 1999/04/28 01:03:26 luoqi Exp $
*/
/*
@@ -1091,11 +1091,12 @@ syscall(frame)
default:
bad:
- if (p->p_sysent->sv_errsize)
+ if (p->p_sysent->sv_errsize) {
if (error >= p->p_sysent->sv_errsize)
error = -1; /* XXX */
else
error = p->p_sysent->sv_errtbl[error];
+ }
frame.tf_eax = error;
frame.tf_eflags |= PSL_C;
break;
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c
index 62fc347..055c8e5 100644
--- a/sys/i386/i386/userconfig.c
+++ b/sys/i386/i386/userconfig.c
@@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
- ** $Id: userconfig.c,v 1.137 1999/04/24 20:20:37 peter Exp $
+ ** $Id: userconfig.c,v 1.138 1999/05/05 09:37:22 jkh Exp $
**/
/**
@@ -1378,13 +1378,14 @@ drawline(int row, int detail, DEV_LIST *list, int inverse, char *dhelp)
nb[58] = '\0';
pad(nb,60);
if (list->conflicts) /* device in conflict? */
+ {
if (inverse)
{
strcpy(nb+54," !nCONF!i "); /* tag conflict, careful of length */
}else{
strcpy(nb+54," !iCONF!n "); /* tag conflict, careful of length */
}
-
+ }
if (list->comment == DEV_DEVICE)
{
sprintf(db,"%s%d",list->dev,list->unit);
@@ -2522,7 +2523,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: userconfig.c,v 1.137 1999/04/24 20:20:37 peter Exp $
+ * $Id: userconfig.c,v 1.138 1999/05/05 09:37:22 jkh Exp $
*/
#include "scbus.h"
diff --git a/sys/i386/ibcs2/ibcs2_fcntl.c b/sys/i386/ibcs2/ibcs2_fcntl.c
index 0fc8b7f..436489263 100644
--- a/sys/i386/ibcs2/ibcs2_fcntl.c
+++ b/sys/i386/ibcs2/ibcs2_fcntl.c
@@ -24,7 +24,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: ibcs2_fcntl.c,v 1.10 1997/11/06 19:28:24 phk Exp $
+ * $Id: ibcs2_fcntl.c,v 1.11 1998/02/04 04:12:28 eivind Exp $
*/
#include "opt_spx_hack.h"
@@ -183,10 +183,10 @@ ibcs2_open(p, uap)
ret = open(p, (struct open_args *)uap);
#ifdef SPX_HACK
- if(ret == ENXIO)
- if(!strcmp(SCARG(uap, path), "/compat/ibcs2/dev/spx"))
+ if (ret == ENXIO) {
+ if (!strcmp(SCARG(uap, path), "/compat/ibcs2/dev/spx"))
ret = spx_open(p, uap);
- else
+ } else
#endif /* SPX_HACK */
if (!ret && !noctty && SESS_LEADER(p) && !(p->p_flag & P_CONTROLT)) {
struct filedesc *fdp = p->p_fd;
diff --git a/sys/i386/isa/asc.c b/sys/i386/isa/asc.c
index 6a60374..2e14e04 100644
--- a/sys/i386/isa/asc.c
+++ b/sys/i386/isa/asc.c
@@ -34,7 +34,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
- * $Id: asc.c,v 1.34 1999/01/28 01:59:53 dillon Exp $
+ * $Id: asc.c,v 1.35 1999/04/28 10:52:14 dt Exp $
*/
#include "asc.h"
@@ -864,7 +864,7 @@ ascpoll(dev_t dev, int events, struct proc *p)
sps=spltty();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (scu->sbuf.count >0)
revents |= events & (POLLIN | POLLRDNORM);
else {
@@ -877,7 +877,7 @@ ascpoll(dev_t dev, int events, struct proc *p)
else
scu->selp.si_pid = p->p_pid;
}
-
+ }
splx(sps);
return 0;
}
diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c
index b02c065..c102444 100644
--- a/sys/i386/isa/if_lnc.c
+++ b/sys/i386/isa/if_lnc.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_lnc.c,v 1.56 1999/04/18 01:37:19 paul Exp $
+ * $Id: if_lnc.c,v 1.57 1999/04/18 01:49:16 paul Exp $
*/
/*
@@ -1708,13 +1708,13 @@ lnc_start(struct ifnet *ifp)
*/
- if (no_entries_needed > (NDESC(sc->ntdre) - sc->pending_transmits))
+ if (no_entries_needed > (NDESC(sc->ntdre) - sc->pending_transmits)) {
if (!(head = chain_to_cluster(head))) {
log(LOG_ERR, "lnc%d: Couldn't get mbuf for transmit packet -- Resetting \n ",ifp->if_unit);
lnc_reset(sc);
return;
}
- else if ((sc->nic.ic == LANCE) || (sc->nic.ic == C_LANCE)) {
+ } else if ((sc->nic.ic == LANCE) || (sc->nic.ic == C_LANCE)) {
if ((head->m_len < 100) && (head->m_next)) {
len = 100 - head->m_len;
if (M_TRAILINGSPACE(head) < len) {
diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c
index 3000e89..3edcf4c 100644
--- a/sys/i386/isa/if_ze.c
+++ b/sys/i386/isa/if_ze.c
@@ -47,7 +47,7 @@
*/
/*
- * $Id: if_ze.c,v 1.55 1998/10/22 05:58:39 bde Exp $
+ * $Id: if_ze.c,v 1.56 1998/12/07 21:58:21 archie Exp $
*/
/* XXX don't mix different PCCARD support code. */
@@ -982,7 +982,7 @@ outloop:
* See if there is room to send more data (i.e. one or both of the
* buffers is empty).
*/
- if (sc->data_buffered)
+ if (sc->data_buffered) {
if (sc->xmit_busy) {
/*
* No room. Indicate this to the outside world
@@ -999,7 +999,7 @@ outloop:
*/
ze_xmit(ifp);
}
-
+ }
IF_DEQUEUE(&sc->arpcom.ac_if.if_snd, m);
if (m == NULL) {
/*
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 836ec9c..001da0c 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -11,7 +11,7 @@
* this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
- * $Id: mse.c,v 1.39 1998/10/22 05:58:39 bde Exp $
+ * $Id: mse.c,v 1.40 1999/04/28 10:52:43 dt Exp $
*/
/*
* Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and
@@ -528,7 +528,7 @@ msepoll(dev, events, p)
int revents = 0;
s = spltty();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (sc->sc_bytesread != sc->mode.packetsize ||
sc->sc_deltax != 0 || sc->sc_deltay != 0 ||
(sc->sc_obuttons ^ sc->sc_buttons) != 0)
@@ -540,7 +540,7 @@ msepoll(dev, events, p)
*/
selrecord(p, &sc->sc_selp);
}
-
+ }
splx(s);
return (revents);
}
diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c
index ad6ae1c..71febbf 100644
--- a/sys/i386/isa/pcaudio.c
+++ b/sys/i386/isa/pcaudio.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pcaudio.c,v 1.45 1998/12/27 20:09:31 sos Exp $
+ * $Id: pcaudio.c,v 1.46 1999/04/28 10:52:45 dt Exp $
*/
#include "pca.h"
@@ -531,7 +531,7 @@ pcapoll(dev_t dev, int events, struct proc *p)
s = spltty();
- if (events & (POLLOUT | POLLWRNORM))
+ if (events & (POLLOUT | POLLWRNORM)) {
if (!pca_status.in_use[0] || !pca_status.in_use[1] ||
!pca_status.in_use[2])
revents |= events & (POLLOUT | POLLWRNORM);
@@ -543,7 +543,7 @@ pcapoll(dev_t dev, int events, struct proc *p)
else
pca_status.wsel.si_pid = p->p_pid;
}
-
+ }
splx(s);
return (revents);
}
diff --git a/sys/i386/isa/random_machdep.c b/sys/i386/isa/random_machdep.c
index fbb0f86..4268375 100644
--- a/sys/i386/isa/random_machdep.c
+++ b/sys/i386/isa/random_machdep.c
@@ -1,7 +1,7 @@
/*
* random_machdep.c -- A strong random number generator
*
- * $Id: random_machdep.c,v 1.29 1998/06/21 11:33:32 bde Exp $
+ * $Id: random_machdep.c,v 1.30 1999/04/21 07:26:28 peter Exp $
*
* Version 0.95, last modified 18-Oct-95
*
@@ -365,12 +365,12 @@ random_poll(dev_t dev, int events, struct proc *p)
int revents = 0;
s = splhigh();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (random_state.entropy_count >= 8)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &random_state.rsel);
-
+ }
splx(s);
if (events & (POLLOUT | POLLWRNORM))
revents |= events & (POLLOUT | POLLWRNORM); /* heh */
diff --git a/sys/i386/isa/sound/audio.c b/sys/i386/isa/sound/audio.c
index d92dd49..c526857 100644
--- a/sys/i386/isa/sound/audio.c
+++ b/sys/i386/isa/sound/audio.c
@@ -64,14 +64,14 @@ set_format(int dev, int fmt)
local_conversion[dev] = 0;
- if (!(audio_devs[dev]->format_mask & fmt)) /* Not supported */
+ if (!(audio_devs[dev]->format_mask & fmt)) { /* Not supported */
if (fmt == AFMT_MU_LAW) {
fmt = AFMT_U8;
local_conversion[dev] = AFMT_MU_LAW;
} else
fmt = AFMT_U8; /* This is always supported */
-
- audio_format[dev] = DMAbuf_ioctl(dev, SNDCTL_DSP_SETFMT,
+ }
+ audio_format[dev] = DMAbuf_ioctl(dev, SNDCTL_DSP_SETFMT,
(ioctl_arg) fmt, 1);
}
if (local_conversion[dev]) /* This shadows the HW format */
diff --git a/sys/i386/isa/sound/gus_wave.c b/sys/i386/isa/sound/gus_wave.c
index 54d36cb..70873b7 100644
--- a/sys/i386/isa/sound/gus_wave.c
+++ b/sys/i386/isa/sound/gus_wave.c
@@ -626,13 +626,15 @@ gus_set_voice_pos(int voice, long position)
{
int sample_no;
- if ((sample_no = sample_map[voice]) != -1)
- if (position < samples[sample_no].len)
+ if ((sample_no = sample_map[voice]) != -1) {
+ if (position < samples[sample_no].len) {
if (voices[voice].volume_irq_mode == VMODE_START_NOTE)
voices[voice].offset_pending = position;
else
gus_write_addr(0x0a, sample_ptrs[sample_no] + position,
samples[sample_no].mode & WAVE_16_BITS);
+ }
+ }
}
static void
diff --git a/sys/i386/isa/sound/pas2_mixer.c b/sys/i386/isa/sound/pas2_mixer.c
index 305ef45..1828ea2 100644
--- a/sys/i386/isa/sound/pas2_mixer.c
+++ b/sys/i386/isa/sound/pas2_mixer.c
@@ -132,12 +132,12 @@ pas_mixer_set(int whichDev, u_int level)
left = level & 0x7f;
right = (level & 0x7f00) >> 8;
- if (whichDev < SOUND_MIXER_NRDEVICES)
+ if (whichDev < SOUND_MIXER_NRDEVICES) {
if ((1 << whichDev) & rec_devices)
mixer = P_M_MV508_INPUTMIX;
else
mixer = P_M_MV508_OUTPUTMIX;
-
+ }
switch (whichDev) {
case SOUND_MIXER_VOLUME: /* Master volume (0-63) */
levels[whichDev] = mixer_output(right, left, 63, P_M_MV508_MASTER_A, 0);
diff --git a/sys/i386/isa/sound/sb_dsp.c b/sys/i386/isa/sound/sb_dsp.c
index 2facd33..8017bb9 100644
--- a/sys/i386/isa/sound/sb_dsp.c
+++ b/sys/i386/isa/sound/sb_dsp.c
@@ -247,13 +247,14 @@ dsp_speed(int speed)
/*
* SB models earlier than SB Pro have low limit for the input speed.
*/
- if (open_mode != OPEN_WRITE) /* Recording is possible */
- if (sbc_major < 3) /* Limited input speed with these cards */
+ if (open_mode != OPEN_WRITE) { /* Recording is possible */
+ if (sbc_major < 3) { /* Limited input speed with these cards */
if (sbc_major == 2 && sbc_minor > 0)
max_speed = 15000;
else
max_speed = 13000;
-
+ }
+ }
if (speed > max_speed)
speed = max_speed; /* Invalid speed */
@@ -1084,7 +1085,7 @@ sb_dsp_init(struct address_info * hw_config)
conf_printf(sb_dsp_operations.name, hw_config);
#if defined(CONFIG_SB16) && defined(CONFIG_SBPRO)
- if (!sb16) /* There is a better driver for SB16 */
+ if (!sb16) { /* There is a better driver for SB16 */
#endif /* CONFIG_SB16 && CONFIG_SBPRO */
if (num_audiodevs < MAX_AUDIO_DEV) {
audio_devs[my_dev = num_audiodevs++] = &sb_dsp_operations;
@@ -1104,6 +1105,9 @@ sb_dsp_init(struct address_info * hw_config)
#endif /* JAZZ16 */
} else
printf("SB: Too many DSP devices available\n");
+#if defined(CONFIG_SB16) && defined(CONFIG_SBPRO)
+ }
+#endif /* CONFIG_SB16 && CONFIG_SBPRO */
#else
conf_printf("SoundBlaster (configured without audio support)", hw_config);
#endif
diff --git a/sys/i386/isa/sound/sequencer.c b/sys/i386/isa/sound/sequencer.c
index 197bd74..ec3bb9b 100644
--- a/sys/i386/isa/sound/sequencer.c
+++ b/sys/i386/isa/sound/sequencer.c
@@ -1691,22 +1691,22 @@ sequencer_poll (int dev, struct fileinfo *file, int events, select_table * wait)
flags = splhigh();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (!iqlen)
selrecord(wait, &selinfo[dev]);
else {
revents |= events & (POLLIN | POLLRDNORM);
midi_sleep_flag.mode &= ~WK_SLEEP;
}
-
- if (events & (POLLOUT | POLLWRNORM))
+ }
+ if (events & (POLLOUT | POLLWRNORM)) {
if (qlen >= SEQ_MAX_QUEUE)
selrecord(wait, &selinfo[dev]);
else {
revents |= events & (POLLOUT | POLLWRNORM);
seq_sleep_flag.mode &= ~WK_SLEEP;
}
-
+ }
splx(flags);
return (revents);
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c
index 0060e51..0fb02ed 100644
--- a/sys/i386/isa/tw.c
+++ b/sys/i386/isa/tw.c
@@ -544,12 +544,12 @@ int twpoll(dev, events, p)
sc = &tw_sc[TWUNIT(dev)];
s = spltty();
/* XXX is this correct? the original code didn't test select rw mode!! */
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if(sc->sc_nextin != sc->sc_nextout)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &sc->sc_selp);
-
+ }
splx(s);
return(revents);
}
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index d3939b8..e7499d5 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94
- * $Id: kern_malloc.c,v 1.53 1999/01/21 21:54:32 msmith Exp $
+ * $Id: kern_malloc.c,v 1.54 1999/01/27 21:49:56 dillon Exp $
*/
#include "opt_vm.h"
@@ -348,11 +348,12 @@ free(addr, type)
freep->type = type;
#endif /* INVARIANTS */
kup->ku_freecnt++;
- if (kup->ku_freecnt >= kbp->kb_elmpercl)
+ if (kup->ku_freecnt >= kbp->kb_elmpercl) {
if (kup->ku_freecnt > kbp->kb_elmpercl)
panic("free: multiple frees");
else if (kbp->kb_totalfree > kbp->kb_highwat)
kbp->kb_couldfree++;
+ }
kbp->kb_totalfree++;
ksp->ks_memuse -= size;
if (ksp->ks_memuse + size >= ksp->ks_limit &&
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 6e6e4b1..679c7b3 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
- * $Id: kern_proc.c,v 1.47 1999/04/28 11:36:57 phk Exp $
+ * $Id: kern_proc.c,v 1.48 1999/05/03 23:57:21 billf Exp $
*/
#include <sys/param.h>
@@ -321,11 +321,12 @@ fixjobc(p, pgrp, entering)
* group; if so, adjust count for p's process group.
*/
if ((hispgrp = p->p_pptr->p_pgrp) != pgrp &&
- hispgrp->pg_session == mysession)
+ hispgrp->pg_session == mysession) {
if (entering)
pgrp->pg_jobc++;
else if (--pgrp->pg_jobc == 0)
orphanpg(pgrp);
+ }
/*
* Check this process' children to see whether they qualify
@@ -335,11 +336,12 @@ fixjobc(p, pgrp, entering)
for (p = p->p_children.lh_first; p != 0; p = p->p_sibling.le_next)
if ((hispgrp = p->p_pgrp) != pgrp &&
hispgrp->pg_session == mysession &&
- p->p_stat != SZOMB)
+ p->p_stat != SZOMB) {
if (entering)
hispgrp->pg_jobc++;
else if (--hispgrp->pg_jobc == 0)
orphanpg(hispgrp);
+ }
}
/*
diff --git a/sys/kern/kern_random.c b/sys/kern/kern_random.c
index fbb0f86..4268375 100644
--- a/sys/kern/kern_random.c
+++ b/sys/kern/kern_random.c
@@ -1,7 +1,7 @@
/*
* random_machdep.c -- A strong random number generator
*
- * $Id: random_machdep.c,v 1.29 1998/06/21 11:33:32 bde Exp $
+ * $Id: random_machdep.c,v 1.30 1999/04/21 07:26:28 peter Exp $
*
* Version 0.95, last modified 18-Oct-95
*
@@ -365,12 +365,12 @@ random_poll(dev_t dev, int events, struct proc *p)
int revents = 0;
s = splhigh();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (random_state.entropy_count >= 8)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &random_state.rsel);
-
+ }
splx(s);
if (events & (POLLOUT | POLLWRNORM))
revents |= events & (POLLOUT | POLLWRNORM); /* heh */
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index f47801b..7a8d8ee 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
- * $Id: kern_shutdown.c,v 1.47 1999/04/27 11:16:04 phk Exp $
+ * $Id: kern_shutdown.c,v 1.48 1999/05/03 23:57:22 billf Exp $
*/
#include "opt_ddb.h"
@@ -233,12 +233,13 @@ boot(howto)
*/
nbusy = 0;
for (bp = &buf[nbuf]; --bp >= buf; ) {
- if (((bp->b_flags & (B_BUSY | B_INVAL)) == B_BUSY)
- ||((bp->b_flags & (B_DELWRI | B_INVAL))== B_DELWRI))
+ if (((bp->b_flags & (B_BUSY | B_INVAL)) == B_BUSY) ||
+ ((bp->b_flags & (B_DELWRI | B_INVAL))== B_DELWRI)) {
if(bp->b_dev == NODEV)
CIRCLEQ_REMOVE(&mountlist, bp->b_vp->v_mount, mnt_list);
else
nbusy++;
+ }
}
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c
index 1204376..c33d6bb 100644
--- a/sys/kern/subr_log.c
+++ b/sys/kern/subr_log.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)subr_log.c 8.1 (Berkeley) 6/10/93
- * $Id: subr_log.c,v 1.32 1998/11/11 10:55:56 truckman Exp $
+ * $Id: subr_log.c,v 1.33 1998/12/07 21:58:29 archie Exp $
*/
/*
@@ -167,12 +167,12 @@ logpoll(dev, events, p)
s = splhigh();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (msgbufp->msg_bufr != msgbufp->msg_bufx)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &logsoftc.sc_selp);
-
+ }
splx(s);
return (revents);
}
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index c0807b0..411d67f 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
- * $Id: trap.c,v 1.135 1999/04/19 14:14:13 peter Exp $
+ * $Id: trap.c,v 1.136 1999/04/28 01:03:26 luoqi Exp $
*/
/*
@@ -1091,11 +1091,12 @@ syscall(frame)
default:
bad:
- if (p->p_sysent->sv_errsize)
+ if (p->p_sysent->sv_errsize) {
if (error >= p->p_sysent->sv_errsize)
error = -1; /* XXX */
else
error = p->p_sysent->sv_errtbl[error];
+ }
frame.tf_eax = error;
frame.tf_eflags |= PSL_C;
break;
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e732834..4201196 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.115 1999/02/19 19:34:49 luoqi Exp $
+ * $Id: tty.c,v 1.116 1999/04/27 11:16:17 phk Exp $
*/
/*-
@@ -1069,19 +1069,20 @@ ttypoll(tp, events, p)
| POLLHUP);
s = spltty();
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (ttnread(tp) > 0 || ISSET(tp->t_state, TS_ZOMBIE))
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &tp->t_rsel);
-
- if (events & (POLLOUT | POLLWRNORM))
+ }
+ if (events & (POLLOUT | POLLWRNORM)) {
if ((tp->t_outq.c_cc <= tp->t_olowat &&
ISSET(tp->t_state, TS_CONNECTED))
|| ISSET(tp->t_state, TS_ZOMBIE))
revents |= events & (POLLOUT | POLLWRNORM);
else
selrecord(p, &tp->t_wsel);
+ }
splx(s);
return (revents);
}
diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c
index 0a1438d..ebffb2a 100644
--- a/sys/kern/tty_snoop.c
+++ b/sys/kern/tty_snoop.c
@@ -497,12 +497,12 @@ snppoll(dev, events, p)
* Caller should see if we down via FIONREAD ioctl().The last should
* return -1 to indicate down state.
*/
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (snp->snp_flags & SNOOP_DOWN || snp->snp_len > 0)
revents |= events & (POLLIN | POLLRDNORM);
else
selrecord(p, &snp->snp_sel);
-
+ }
return (revents);
}
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c
index 1014629..4fcbe0b 100644
--- a/sys/msdosfs/msdosfs_vfsops.c
+++ b/sys/msdosfs/msdosfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vfsops.c,v 1.40 1999/01/27 22:42:09 dillon Exp $ */
+/* $Id: msdosfs_vfsops.c,v 1.41 1999/03/28 23:00:33 dt Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
/*-
@@ -886,12 +886,13 @@ msdosfs_sync(mp, waitfor, cred, p)
* If we ever switch to not updating all of the fats all the time,
* this would be the place to update them from the first one.
*/
- if (pmp->pm_fmod != 0)
+ if (pmp->pm_fmod != 0) {
if (pmp->pm_flags & MSDOSFSMNT_RONLY)
panic("msdosfs_sync: rofs mod");
else {
/* update fats here */
}
+ }
/*
* Write back each (modified) denode.
*/
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index 108aab0..e8678ab 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vnops.c,v 1.82 1999/04/27 11:16:51 phk Exp $ */
+/* $Id: msdosfs_vnops.c,v 1.83 1999/04/28 11:37:27 phk Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
/*-
@@ -1762,12 +1762,12 @@ out:
/*
* Set the eofflag (NFS uses it)
*/
- if (ap->a_eofflag)
+ if (ap->a_eofflag) {
if (dep->de_FileSize - (offset - bias) <= 0)
*ap->a_eofflag = 1;
else
*ap->a_eofflag = 0;
-
+ }
return (error);
}
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 92c156d..181fa86 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -657,7 +657,7 @@ tunpoll(dev, events, p)
s = splimp();
TUNDEBUG("%s%d: tunpoll\n", ifp->if_name, ifp->if_unit);
- if (events & (POLLIN | POLLRDNORM))
+ if (events & (POLLIN | POLLRDNORM)) {
if (ifp->if_snd.ifq_len > 0) {
TUNDEBUG("%s%d: tunpoll q=%d\n", ifp->if_name,
ifp->if_unit, ifp->if_snd.ifq_len);
@@ -667,7 +667,7 @@ tunpoll(dev, events, p)
ifp->if_unit);
selrecord(p, &tp->tun_rsel);
}
-
+ }
if (events & (POLLOUT | POLLWRNORM))
revents |= events & (POLLOUT | POLLWRNORM);
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index d66aeb7..d8da636 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* From: @(#)if.h 8.1 (Berkeley) 6/10/93
- * $Id: if_var.h,v 1.10 1998/12/16 18:30:43 phk Exp $
+ * $Id: if_var.h,v 1.11 1999/04/16 21:22:46 peter Exp $
*/
#ifndef _NET_IF_VAR_H_
@@ -277,10 +277,12 @@ struct ifmultiaddr {
#ifdef KERNEL
#define IFAFREE(ifa) \
- if ((ifa)->ifa_refcnt <= 0) \
- ifafree(ifa); \
- else \
- (ifa)->ifa_refcnt--;
+ do { \
+ if ((ifa)->ifa_refcnt <= 0) \
+ ifafree(ifa); \
+ else \
+ (ifa)->ifa_refcnt--; \
+ } while (0)
extern struct ifnethead ifnet;
extern int ifqmaxlen;
diff --git a/sys/net/route.h b/sys/net/route.h
index 850d38e..f53e4e5 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.h 8.3 (Berkeley) 4/19/94
- * $Id: route.h,v 1.27 1997/09/07 05:26:27 bde Exp $
+ * $Id: route.h,v 1.28 1998/03/23 13:58:02 bde Exp $
*/
#ifndef _NET_ROUTE_H_
@@ -255,10 +255,12 @@ struct route_cb {
#ifdef KERNEL
#define RTFREE(rt) \
- if ((rt)->rt_refcnt <= 1) \
- rtfree(rt); \
- else \
- (rt)->rt_refcnt--;
+ do { \
+ if ((rt)->rt_refcnt <= 1) \
+ rtfree(rt); \
+ else \
+ (rt)->rt_refcnt--; \
+ } while (0)
extern struct route_cb route_cb;
extern struct radix_node_head *rt_tables[AF_MAX+1];
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 4dd80e9..9b7e415 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ether.c,v 1.56 1999/03/10 10:11:43 julian Exp $
+ * $Id: if_ether.c,v 1.57 1999/04/15 17:58:24 eivind Exp $
*/
/*
@@ -544,7 +544,7 @@ in_arpinput(m)
}
#endif
if (sdl->sdl_alen &&
- bcmp((caddr_t)ea->arp_sha, LLADDR(sdl), sdl->sdl_alen))
+ bcmp((caddr_t)ea->arp_sha, LLADDR(sdl), sdl->sdl_alen)) {
if (rt->rt_expire)
log(LOG_INFO, "arp: %s moved from %6D to %6D on %s%d\n",
inet_ntoa(isaddr), (u_char *)LLADDR(sdl), ":",
@@ -557,6 +557,7 @@ in_arpinput(m)
ac->ac_if.if_name, ac->ac_if.if_unit);
goto reply;
}
+ }
(void)memcpy(LLADDR(sdl), ea->arp_sha, sizeof(ea->arp_sha));
sdl->sdl_alen = sizeof(ea->arp_sha);
sdl->sdl_rcf = NULL;
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
index 65bfecf..bf63c76 100644
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -9,7 +9,7 @@
* Modified by Bill Fenner, PARC, April 1995
*
* MROUTING Revision: 3.5
- * $Id: ip_mroute.c,v 1.52 1999/01/12 12:16:50 eivind Exp $
+ * $Id: ip_mroute.c,v 1.53 1999/01/18 02:06:57 fenner Exp $
*/
#include "opt_mrouting.h"
@@ -2195,13 +2195,14 @@ rsvp_input(m, iphlen)
printf("rsvp_input: m->m_len = %d, sbspace() = %ld\n",
m->m_len,sbspace(&(viftable[vifi].v_rsvpd->so_rcv)));
- if (socket_send(viftable[vifi].v_rsvpd, m, &rsvp_src) < 0)
+ if (socket_send(viftable[vifi].v_rsvpd, m, &rsvp_src) < 0) {
if (rsvpdebug)
printf("rsvp_input: Failed to append to socket\n");
- else
+ } else {
if (rsvpdebug)
printf("rsvp_input: send packet up\n");
-
+ }
+
splx(s);
}
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index b155c1d..9709d50 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
- * $Id: tcp_input.c,v 1.84 1999/02/06 00:47:45 fenner Exp $
+ * $Id: tcp_input.c,v 1.85 1999/05/03 23:57:30 billf Exp $
*/
#include "opt_ipfw.h" /* for ipfw_fwd */
@@ -844,11 +844,12 @@ findpcb:
* we don't get fooled into using T/TCP.
*/
if (to.to_flag & TOF_CCECHO) {
- if (tp->cc_send != to.to_ccecho)
+ if (tp->cc_send != to.to_ccecho) {
if (taop->tao_ccsent != 0)
goto drop;
else
goto dropwithreset;
+ }
} else
tp->t_flags &= ~TF_RCVD_CC;
tcpstat.tcps_connects++;
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index b155c1d..9709d50 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
- * $Id: tcp_input.c,v 1.84 1999/02/06 00:47:45 fenner Exp $
+ * $Id: tcp_input.c,v 1.85 1999/05/03 23:57:30 billf Exp $
*/
#include "opt_ipfw.h" /* for ipfw_fwd */
@@ -844,11 +844,12 @@ findpcb:
* we don't get fooled into using T/TCP.
*/
if (to.to_flag & TOF_CCECHO) {
- if (tp->cc_send != to.to_ccecho)
+ if (tp->cc_send != to.to_ccecho) {
if (taop->tao_ccsent != 0)
goto drop;
else
goto dropwithreset;
+ }
} else
tp->t_flags &= ~TF_RCVD_CC;
tcpstat.tcps_connects++;
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 63e8e39..eef3d7f 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95
- * $Id: nfs_serv.c,v 1.74 1999/04/27 11:17:49 phk Exp $
+ * $Id: nfs_serv.c,v 1.75 1999/04/28 11:37:54 phk Exp $
*/
/*
@@ -1921,11 +1921,12 @@ nfsrv_rename(nfsd, slp, procp, mrq)
error = ENOTEMPTY;
goto out;
}
- if (fvp == tdvp)
+ if (fvp == tdvp) {
if (v3)
error = EINVAL;
else
error = ENOTEMPTY;
+ }
/*
* If source is the same as the destination (that is the
* same vnode with the same name in the same directory),
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 13514b8..5170d21 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
- * $Id: nfs_vnops.c,v 1.125 1999/05/02 23:56:26 alc Exp $
+ * $Id: nfs_vnops.c,v 1.126 1999/05/03 20:59:14 alc Exp $
*/
@@ -2543,11 +2543,12 @@ nfs_lookitup(dvp, name, len, cred, procp, npp)
nfsm_reqdone;
if (npp && *npp == NULL) {
if (error) {
- if (newvp)
+ if (newvp) {
if (newvp == dvp)
vrele(newvp);
else
vput(newvp);
+ }
} else
*npp = np;
}
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c
index 13514b8..5170d21 100644
--- a/sys/nfsclient/nfs_vnops.c
+++ b/sys/nfsclient/nfs_vnops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
- * $Id: nfs_vnops.c,v 1.125 1999/05/02 23:56:26 alc Exp $
+ * $Id: nfs_vnops.c,v 1.126 1999/05/03 20:59:14 alc Exp $
*/
@@ -2543,11 +2543,12 @@ nfs_lookitup(dvp, name, len, cred, procp, npp)
nfsm_reqdone;
if (npp && *npp == NULL) {
if (error) {
- if (newvp)
+ if (newvp) {
if (newvp == dvp)
vrele(newvp);
else
vput(newvp);
+ }
} else
*npp = np;
}
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index 63e8e39..eef3d7f 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95
- * $Id: nfs_serv.c,v 1.74 1999/04/27 11:17:49 phk Exp $
+ * $Id: nfs_serv.c,v 1.75 1999/04/28 11:37:54 phk Exp $
*/
/*
@@ -1921,11 +1921,12 @@ nfsrv_rename(nfsd, slp, procp, mrq)
error = ENOTEMPTY;
goto out;
}
- if (fvp == tdvp)
+ if (fvp == tdvp) {
if (v3)
error = EINVAL;
else
error = ENOTEMPTY;
+ }
/*
* If source is the same as the destination (that is the
* same vnode with the same name in the same directory),
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c
index 4ff91d5..01fefbb 100644
--- a/sys/pci/if_tl.c
+++ b/sys/pci/if_tl.c
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_tl.c,v 1.29 1999/04/24 20:14:01 peter Exp $
+ * $Id: if_tl.c,v 1.30 1999/05/06 15:32:49 wpaul Exp $
*/
/*
@@ -221,7 +221,7 @@
#if !defined(lint)
static const char rcsid[] =
- "$Id: if_tl.c,v 1.29 1999/04/24 20:14:01 peter Exp $";
+ "$Id: if_tl.c,v 1.30 1999/05/06 15:32:49 wpaul Exp $";
#endif
/*
@@ -1411,10 +1411,10 @@ static int tl_attach_phy(sc)
if (sc->tl_phy_sts & PHY_BMSR_100BT4 ||
sc->tl_phy_sts & PHY_BMSR_100BTXHALF ||
- sc->tl_phy_sts & PHY_BMSR_100BTXHALF)
+ sc->tl_phy_sts & PHY_BMSR_100BTXHALF) {
if (bootverbose)
printf("10/100Mbps ");
- else {
+ } else {
media &= ~IFM_100_TX;
media |= IFM_10_T;
if (bootverbose)
@@ -1422,10 +1422,10 @@ static int tl_attach_phy(sc)
}
if (sc->tl_phy_sts & PHY_BMSR_100BTXFULL ||
- sc->tl_phy_sts & PHY_BMSR_10BTFULL)
+ sc->tl_phy_sts & PHY_BMSR_10BTFULL) {
if (bootverbose)
printf("full duplex ");
- else {
+ } else {
if (bootverbose)
printf("half duplex ");
media &= ~IFM_FDX;
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 2794e32..5d4d31b 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95
- * $Id: ffs_alloc.c,v 1.55 1999/01/06 17:04:33 bde Exp $
+ * $Id: ffs_alloc.c,v 1.56 1999/01/07 16:14:16 bde Exp $
*/
#include "opt_quota.h"
@@ -505,11 +505,12 @@ ffs_reallocblks(ap)
if (!doasyncfree)
UFS_UPDATE(vp, 1);
}
- if (ssize < len)
+ if (ssize < len) {
if (doasyncfree)
bdwrite(ebp);
else
bwrite(ebp);
+ }
/*
* Last, free the old blocks and assign the new blocks to the buffers.
*/
OpenPOWER on IntegriCloud