summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThomas Nordin <nordin@cvs.openbsd.org>2002-07-25 01:26:02 +0000
committerThomas Nordin <nordin@cvs.openbsd.org>2002-07-25 01:26:02 +0000
commit0e0f2c8d681fe03a20821eab98d5c349c7071166 (patch)
treeb0b8ddbbd0d98a1930b04abbab64be38ee1db967 /sys
parent509469b0387b5bc3105f6781d381b8373c2cc3db (diff)
Modify lvalue only once between sequence points. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_userconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c
index c5663f12e89..d610c185a3f 100644
--- a/sys/kern/subr_userconf.c
+++ b/sys/kern/subr_userconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_userconf.c,v 1.29 2002/05/02 12:59:58 miod Exp $ */
+/* $OpenBSD: subr_userconf.c,v 1.30 2002/07/25 01:26:01 nordin Exp $ */
/*
* Copyright (c) 1996-2001 Mats O Jansson <moj@stacken.kth.se>
@@ -1108,13 +1108,13 @@ userconf_add(dev, len, unit, state)
/* Fix indexs in pv */
for (i = 0; i < pv_size; i++) {
if (pv[i] != -1 && pv[i] >= val)
- pv[i] = pv[i]++;
+ pv[i]++;
}
/* Fix indexs in cfroots */
for (i = 0; i < cfroots_size; i++) {
if (cfroots[i] != -1 && cfroots[i] >= val)
- cfroots[i] = cfroots[i]++;
+ cfroots[i]++;
}
userconf_maxdev++;