Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Don't nest structure definitions.
details: https://anonhg.NetBSD.org/src/rev/b0f0cc6be2e3
branches: trunk
changeset: 332023:b0f0cc6be2e3
user: matt <matt%NetBSD.org@localhost>
date: Fri Sep 05 05:34:41 2014 +0000
description:
Don't nest structure definitions.
diffstat:
sys/nfs/nfsrtt.h | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
diffs (42 lines):
diff -r 22e1734fe27a -r b0f0cc6be2e3 sys/nfs/nfsrtt.h
--- a/sys/nfs/nfsrtt.h Fri Sep 05 05:33:39 2014 +0000
+++ b/sys/nfs/nfsrtt.h Fri Sep 05 05:34:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsrtt.h,v 1.9 2006/12/28 00:39:03 yamt Exp $ */
+/* $NetBSD: nfsrtt.h,v 1.10 2014/09/05 05:34:41 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -52,19 +52,21 @@
* list goes from nfsrtt.rttl[pos] --> nfsrtt.rttl[pos - 1] in
* chronological order of completion.
*/
+struct rttl {
+ u_int32_t proc; /* NFS procedure number */
+ int rtt; /* Measured round trip time */
+ int rto; /* Round Trip Timeout */
+ int sent; /* # rpcs in progress */
+ int cwnd; /* Send window */
+ int srtt; /* Ave Round Trip Time */
+ int sdrtt; /* Ave mean deviation of RTT */
+ fsid_t fsid; /* Fsid for mount point */
+ struct timeval tstamp; /* Timestamp of log entry */
+};
+
struct nfsrtt {
int pos; /* Position in array for next entry */
- struct rttl {
- u_int32_t proc; /* NFS procedure number */
- int rtt; /* Measured round trip time */
- int rto; /* Round Trip Timeout */
- int sent; /* # rpcs in progress */
- int cwnd; /* Send window */
- int srtt; /* Ave Round Trip Time */
- int sdrtt; /* Ave mean deviation of RTT */
- fsid_t fsid; /* Fsid for mount point */
- struct timeval tstamp; /* Timestamp of log entry */
- } rttl[NFSRTTLOGSIZ];
+ struct rttl rttl[NFSRTTLOGSIZ];
};
/*
Home |
Main Index |
Thread Index |
Old Index