projects
/
platform
/
upstream
/
kmod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b838e
)
Reduce scope of counter variable
author
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Sat, 14 Jan 2012 04:04:31 +0000
(
02:04
-0200)
committer
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Sat, 14 Jan 2012 04:04:31 +0000
(
02:04
-0200)
tools/kmod-depmod.c
patch
|
blob
|
history
diff --git
a/tools/kmod-depmod.c
b/tools/kmod-depmod.c
index
14bad94
..
f624256
100644
(file)
--- a/
tools/kmod-depmod.c
+++ b/
tools/kmod-depmod.c
@@
-2519,7
+2519,7
@@
static int is_version_number(const char *version)
static int do_depmod(int argc, char *argv[])
{
FILE *out = NULL;
- int
i,
err = 0, all = 0, maybe_all = 0, n_config_paths = 0;
+ int err = 0, all = 0, maybe_all = 0, n_config_paths = 0;
const char **config_paths = NULL;
const char *root = "";
const char *system_map = NULL;
@@
-2693,6
+2693,8
@@
static int do_depmod(int argc, char *argv[])
goto cmdline_modules_failed;
}
} else {
+ int i;
+
for (i = optind; i < argc; i++) {
const char *path = argv[i];
struct kmod_module *mod;