aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-30 20:41:44 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-09-30 20:41:44 +0000
commitae83d0f8f218b02e600a8ecb4535e95bf5fae1b5 (patch)
tree750347c7cd275a8fbb8ca17e5d36579aac462e9a /modutils
parentb2ec8cf934397c6bc15e19d1d24884192a38dd01 (diff)
downloadbusybox-w32-ae83d0f8f218b02e600a8ecb4535e95bf5fae1b5.tar.gz
busybox-w32-ae83d0f8f218b02e600a8ecb4535e95bf5fae1b5.tar.bz2
busybox-w32-ae83d0f8f218b02e600a8ecb4535e95bf5fae1b5.zip
lsmod: repair indentation
httpd: ifdef CONFIG -> if ENABLE (shorted, catched typos) git-svn-id: svn://busybox.net/trunk/busybox@16276 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils')
-rw-r--r--modutils/lsmod.c62
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);