summaryrefslogtreecommitdiffstats
path: root/utils/mountd/v4root.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2011-04-06 10:46:06 -0400
committerSteve Dickson <steved@redhat.com>2011-04-06 10:46:06 -0400
commit502eef09d8050ffb87d394397c2780e1ef042d68 (patch)
treec3f2d2f41d5f9685761c4ffa5a6844b733819c3f /utils/mountd/v4root.c
parentc2fa189a0467c25666f014cf9ff2576a9f54d682 (diff)
downloadnfs-utils-502eef09d8050ffb87d394397c2780e1ef042d68.tar.gz
nfs-utils-502eef09d8050ffb87d394397c2780e1ef042d68.tar.xz
nfs-utils-502eef09d8050ffb87d394397c2780e1ef042d68.zip
Removed a warning from v4root.c
v4root.c:176:9: warning: variable 'ret' set but not used Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mountd/v4root.c')
-rw-r--r--utils/mountd/v4root.c9
1 files 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! */
}
}