diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-30 20:41:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-30 20:41:44 +0000 |
commit | 55a994055ff2c391aeec377dbb1e6b3c096334d2 (patch) | |
tree | 750347c7cd275a8fbb8ca17e5d36579aac462e9a /modutils | |
parent | 3038ac9c1977c8472fdda2d833a4e4fd5ba6ea94 (diff) | |
download | busybox-w32-55a994055ff2c391aeec377dbb1e6b3c096334d2.tar.gz busybox-w32-55a994055ff2c391aeec377dbb1e6b3c096334d2.tar.bz2 busybox-w32-55a994055ff2c391aeec377dbb1e6b3c096334d2.zip |
lsmod: repair indentation
httpd: ifdef CONFIG -> if ENABLE (shorted, catched typos)
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/lsmod.c | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 69c8ab3c7..ac1cded2b 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -147,37 +147,37 @@ int lsmod_main(int argc, char **argv) | |||
147 | check_tainted(); | 147 | check_tainted(); |
148 | #if defined(CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT) | 148 | #if defined(CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT) |
149 | { | 149 | { |
150 | char line[4096]; | 150 | char line[4096]; |
151 | 151 | ||
152 | while (fgets(line, sizeof(line), file)) { | 152 | while (fgets(line, sizeof(line), file)) { |
153 | char *tok; | 153 | char *tok; |
154 | 154 | ||
155 | tok = strtok(line, " \t"); | 155 | tok = strtok(line, " \t"); |
156 | printf("%-19s", tok); | 156 | printf("%-19s", tok); |
157 | tok = strtok(NULL, " \t\n"); | 157 | tok = strtok(NULL, " \t\n"); |
158 | printf(" %8s", tok); | 158 | printf(" %8s", tok); |
159 | tok = strtok(NULL, " \t\n"); | 159 | tok = strtok(NULL, " \t\n"); |
160 | /* Null if no module unloading support. */ | 160 | /* Null if no module unloading support. */ |
161 | if (tok) { | 161 | if (tok) { |
162 | printf(" %s", tok); | 162 | printf(" %s", tok); |
163 | tok = strtok(NULL, "\n"); | 163 | tok = strtok(NULL, "\n"); |
164 | if (!tok) | 164 | if (!tok) |
165 | tok = ""; | 165 | tok = ""; |
166 | /* New-style has commas, or -. If so, | 166 | /* New-style has commas, or -. If so, |
167 | truncate (other fields might follow). */ | 167 | truncate (other fields might follow). */ |
168 | else if (strchr(tok, ',')) { | 168 | else if (strchr(tok, ',')) { |
169 | tok = strtok(tok, "\t "); | 169 | tok = strtok(tok, "\t "); |
170 | /* Strip trailing comma. */ | 170 | /* Strip trailing comma. */ |
171 | if (tok[strlen(tok)-1] == ',') | 171 | if (tok[strlen(tok)-1] == ',') |
172 | tok[strlen(tok)-1] = '\0'; | 172 | tok[strlen(tok)-1] = '\0'; |
173 | } else if (tok[0] == '-' | 173 | } else if (tok[0] == '-' |
174 | && (tok[1] == '\0' || isspace(tok[1]))) | 174 | && (tok[1] == '\0' || isspace(tok[1]))) |
175 | tok = ""; | 175 | tok = ""; |
176 | printf(" %s", tok); | 176 | printf(" %s", tok); |
177 | } | 177 | } |
178 | printf("\n"); | 178 | printf("\n"); |
179 | } | 179 | } |
180 | fclose(file); | 180 | fclose(file); |
181 | } | 181 | } |
182 | #else | 182 | #else |
183 | xprint_and_close_file(file); | 183 | xprint_and_close_file(file); |