summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-01-24 11:40:07 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-01-24 11:40:07 +0000
commit1ee6a062bb5f9c402a736f3adf2ddc75a3567c07 (patch)
treec3914492a4f4767ade818a498848284f309389a9 /sys/nfs
parent7a96d8b495f93068c7d334e110a775ee4c952727 (diff)
magic 8 -> nitems(nfs_backoff)
prompted by David <dunnoseriously _att_ gmail.com>
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c
index 1901285d079..efa72fa7830 100644
--- a/sys/nfs/nfs_socket.c
+++ b/sys/nfs/nfs_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_socket.c,v 1.75 2009/01/22 18:14:21 bluhm Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.76 2009/01/24 11:40:06 thib Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@ -1171,7 +1171,7 @@ nfs_timer(arg)
timeo *= nfs_backoff[nmp->nm_timeouts - 1];
if (rep->r_rtt <= timeo)
continue;
- if (nmp->nm_timeouts < 8)
+ if (nmp->nm_timeouts < nitems(nfs_backoff))
nmp->nm_timeouts++;
}
/*