Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs use sizeof() instead of a hardcorded constant.
details: https://anonhg.NetBSD.org/src/rev/3264801028fe
branches: trunk
changeset: 550664:3264801028fe
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Aug 16 18:09:14 2003 +0000
description:
use sizeof() instead of a hardcorded constant.
diffstat:
sys/nfs/nfs_socket.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 41b30fb01236 -r 3264801028fe sys/nfs/nfs_socket.c
--- a/sys/nfs/nfs_socket.c Sat Aug 16 18:08:27 2003 +0000
+++ b/sys/nfs/nfs_socket.c Sat Aug 16 18:09:14 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_socket.c,v 1.97 2003/08/16 18:08:27 yamt Exp $ */
+/* $NetBSD: nfs_socket.c,v 1.98 2003/08/16 18:09:14 yamt Exp $ */
/*
* Copyright (c) 1989, 1991, 1993, 1995
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.97 2003/08/16 18:08:27 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.98 2003/08/16 18:09:14 yamt Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@@ -1392,7 +1392,8 @@
timeo *= nfs_backoff[nmp->nm_timeouts - 1];
if (rep->r_rtt <= timeo)
continue;
- if (nmp->nm_timeouts < 8)
+ if (nmp->nm_timeouts <
+ (sizeof(nfs_backoff) / sizeof(nfs_backoff[0])))
nmp->nm_timeouts++;
}
/*
Home |
Main Index |
Thread Index |
Old Index