From: Steve Dickson Date: Wed, 6 Apr 2011 14:46:06 +0000 (-0400) Subject: Removed a warning from v4root.c X-Git-Tag: nfs-utils-1-2-4-rc7~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=502eef09d8050ffb87d394397c2780e1ef042d68;p=nfs-utils.git Removed a warning from v4root.c v4root.c:176:9: warning: variable 'ret' set but not used Signed-off-by: Steve Dickson --- 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! */ } }