nbargs isn't used for anything in lxc_unshare.c. Remove it.

Signed-off-by: Matt Helsley <[email protected]>
---
 src/lxc/lxc_unshare.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Index: lxc/src/lxc/lxc_unshare.c
===================================================================
--- lxc.orig/src/lxc/lxc_unshare.c
+++ lxc/src/lxc/lxc_unshare.c
@@ -76,7 +76,7 @@ static uid_t lookup_user(const char *opt
 
 int main(int argc, char *argv[])
 {
-       int opt, nbargs = 0, status = 1, hastofork = 0;
+       int opt, status = 1, hastofork = 0;
        char **args;
        long flags = 0;
        uid_t uid = -1; /* valid only if (flags & CLONE_NEWUSER) */
@@ -109,12 +109,9 @@ int main(int argc, char *argv[])
                        hastofork = 1;
                        break;
                }
-
-               nbargs++;
        }
 
        args = &argv[optind];
-       argc -= nbargs;
 
        if (!flags)
                usage(argv[0]);
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to