]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed a warning from v4root.c
authorSteve Dickson <steved@redhat.com>
Wed, 6 Apr 2011 14:46:06 +0000 (10:46 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 6 Apr 2011 14:46:06 +0000 (10:46 -0400)
v4root.c:176:9: warning: variable 'ret' set but not used

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/v4root.c

index 7fd6af3dd4592462addb005c3986031d8f5020ad..c33a5a9eb79d690580e81825de197d799d214ded 100644 (file)
@@ -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! */
                }
        }