From 40af0d2957a168bee50337695379313f3f88c635 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Sat, 9 Jan 2010 10:26:41 -0700 Subject: [PATCH] mountd: simplify export list deferral in v4root_set We're adding new entries, but not deleting them, so we don't need to do the usual double-counter trick here. Signed-off-by: J. Bruce Fields --- utils/mountd/v4root.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index b0a10c8..ac800b3 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -147,7 +147,7 @@ int pseudofs_update(char *hostname, char *path, nfs_export *source) void v4root_set() { - nfs_export *exp, *nxt; + nfs_export *exp; int i; char *path, *ptr; char *hostname; @@ -158,8 +158,7 @@ v4root_set() return; for (i = 0; i < MCL_MAXTYPES; i++) { - for (exp = exportlist[i].p_head; exp; exp = nxt) { - nxt = exp->m_next; + for (exp = exportlist[i].p_head; exp; exp = exp->m_next) { hostname = exp->m_export.e_hostname; if (exp->m_export.e_flags & NFSEXP_V4ROOT) -- 2.39.5