summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_serv.c
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-06-14 00:26:14 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-06-14 00:26:14 +0000
commit23f60cf29fd5cb95358167f1f71d8c14d41cf3bf (patch)
tree9c2d40cb5bace7dc192e65f0c8c3cc871f5fb05e /sys/nfs/nfs_serv.c
parent4d547cf1354c3db7de1c860e490afd56d26e3451 (diff)
use nfsm_padlen() where appropriate;
ok blambert@
Diffstat (limited to 'sys/nfs/nfs_serv.c')
-rw-r--r--sys/nfs/nfs_serv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 77d1ad54cf4..698924bc86e 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_serv.c,v 1.54 2008/06/13 03:49:26 blambert Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.55 2008/06/14 00:26:13 thib Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@ -2499,7 +2499,7 @@ again:
while (cpos < cend && ncookies > 0) {
if (dp->d_fileno != 0) {
nlen = dp->d_namlen;
- pad = nfsm_rndup(nlen) - nlen;
+ pad = nfsm_padlen(nlen);
len += (4 * NFSX_UNSIGNED + nlen + pad);
if (v3)
len += 2 * NFSX_UNSIGNED;
@@ -2718,7 +2718,7 @@ again:
while (cpos < cend && ncookies > 0) {
if (dp->d_fileno != 0) {
nlen = dp->d_namlen;
- pad = nfsm_rndup(nlen) - nlen;
+ pad = nfsm_padlen(nlen);
/*
* For readdir_and_lookup get the vnode using