All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Cc: Containers <containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>
Subject: [PATCH] liblxc: Remove unused variable
Date: Wed, 25 Feb 2009 20:25:37 -0800	[thread overview]
Message-ID: <20090226042537.GD11052@us.ibm.com> (raw)

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

Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
 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]);

             reply	other threads:[~2009-02-26  4:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-26  4:25 Matt Helsley [this message]
     [not found] ` <20090226042537.GD11052-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-03-08 16:34   ` [PATCH] liblxc: Remove unused variable Daniel Lezcano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090226042537.GD11052@us.ibm.com \
    --to=matthltc-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=daniel.lezcano-GANU6spQydw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.