From 502eef09d8050ffb87d394397c2780e1ef042d68 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 6 Apr 2011 10:46:06 -0400 Subject: [PATCH] Removed a warning from v4root.c v4root.c:176:9: warning: variable 'ret' set but not used Signed-off-by: Steve Dickson --- utils/mountd/v4root.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils/mountd/v4root.c b/utils/mountd/v4root.c index 7fd6af3..c33a5a9 100644 --- a/utils/mountd/v4root.c +++ b/utils/mountd/v4root.c @@ -144,8 +144,11 @@ static int v4root_add_parents(nfs_export *exp) char *ptr; path = strdup(exp->m_export.e_path); - if (!path) + if (!path) { + xlog(L_WARNING, "v4root_add_parents: Unable to create " + "pseudo export for '%s'", exp->m_export.e_path); return -ENOMEM; + } for (ptr = path + 1; ptr; ptr = strchr(ptr, '/')) { int ret; char saved; @@ -173,7 +176,7 @@ void v4root_set() { nfs_export *exp; - int i, ret; + int i; if (!v4root_needed) return; @@ -189,7 +192,7 @@ v4root_set() */ continue; - ret = v4root_add_parents(exp); + v4root_add_parents(exp); /* XXX: error handling! */ } } -- 2.39.5