[Devel] [PATCH] liblxc: Remove unused variable

Matt Helsley matthltc at us.ibm.com
Wed Feb 25 20:25:37 PST 2009


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

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 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
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list