Repository navigation
Commit 5d1ef76
committed
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>1 parent ccfe788 commit 5d1ef76
1 file changed
Lines changed: 16 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
125 | 120 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 121 | | |
135 | 122 | | |
136 | 123 | | |
| |||
152 | 139 | | |
153 | 140 | | |
154 | 141 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
164 | 150 | | |
| 151 | + | |
165 | 152 | | |
166 | 153 | | |
167 | 154 | | |
| |||
300 | 287 | | |
301 | 288 | | |
302 | 289 | | |
303 | | - | |
| 290 | + | |
304 | 291 | | |
305 | 292 | | |
306 | 293 | | |
| |||
385 | 372 | | |
386 | 373 | | |
387 | 374 | | |
388 | | - | |
| 375 | + | |
| 376 | + | |
389 | 377 | | |
390 | 378 | | |
391 | 379 | | |
392 | 380 | | |
393 | 381 | | |
394 | 382 | | |
395 | 383 | | |
| 384 | + | |
| 385 | + | |
396 | 386 | | |
397 | 387 | | |
398 | 388 | | |
| |||
405 | 395 | | |
406 | 396 | | |
407 | 397 | | |
408 | | - | |
| 398 | + | |
409 | 399 | | |
410 | 400 | | |
411 | | - | |
| 401 | + | |
412 | 402 | | |
413 | 403 | | |
414 | 404 | | |
| |||
0 commit comments