fixdep: move global variables to local variables of main()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 11 Jan 2018 13:05:44 +0000 (22:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 18 Jan 2018 00:37:38 +0000 (09:37 +0900)
commit5d1ef76f5a22ea07120671c5fcddafd365000cc9
tree810436c9efdd26f3008717f49daf92c6daaf7802
parentccfe78873c22561d3c514790094dc408e4876077
fixdep: move global variables to local variables of main()

I do not mind global variables where they are useful enough.  In this
case, I do not see a good reason to use global variables since they
are just referenced in shallow places.  It is easy to pass them via
function arguments.

I squashed print_cmdline() into main() since it is just one line code.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/basic/fixdep.c