diff options
author | phk <phk@FreeBSD.org> | 2002-09-18 19:44:14 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-18 19:44:14 +0000 |
commit | 63d87674c83d54fccca1aacdd2cb1c827796d834 (patch) | |
tree | 80e29b0b20f950540c3d00897b86679074fa456b /sys/nfsclient | |
parent | 369ca07115f3e95429a31404e4fd6ffeddc8dc48 (diff) | |
download | FreeBSD-src-63d87674c83d54fccca1aacdd2cb1c827796d834.zip FreeBSD-src-63d87674c83d54fccca1aacdd2cb1c827796d834.tar.gz |
Use m_length() instead of home-rolled versions.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index 95e509b..15cf946 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -869,13 +869,7 @@ nfs_request(struct vnode *vp, struct mbuf *mrest, int procnum, rep->r_vp = vp; rep->r_td = td; rep->r_procnum = procnum; - i = 0; - m = mrest; - while (m) { - i += m->m_len; - m = m->m_next; - } - mrest_len = i; + mrest_len = m_length(mrest, NULL); /* * Get the RPC header with authorization. |