]> git.ipfire.org Git - thirdparty/lxc.git/commit
cmd: Reduce scope of 'count' variable 2552/head
authorTobin C. Harding <me@tobin.cc>
Mon, 20 Aug 2018 06:31:33 +0000 (16:31 +1000)
committerTobin C. Harding <me@tobin.cc>
Mon, 20 Aug 2018 23:25:30 +0000 (09:25 +1000)
commitaac44dc4ff44a70689f657829ccda2b3aeeb595f
treec01a18b833ba57887f95c132fed340bb12c655e7
parentba464e9b6672cf1b3e96a0c0efb3ee55ad4156ee
cmd: Reduce scope of 'count' variable

Variable is used in one plaice only within a nested statement block.
The code is cleaner if the variable is declared near where it is used.
Found using cppcheck.

Reduce the scope of 'count' variable.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
src/lxc/cmd/lxc_user_nic.c