aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-16 04:09:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-16 04:09:25 +0000
commitf45c4f41b792e4b7c52eaf21b9540112887e861b (patch)
treee5f35073f61b6178d49d02821676894f32b7a32f /modutils/modprobe.c
parent57c899e4c2be4d0bddeaaca9c34ea0f484f92ad8 (diff)
downloadbusybox-w32-f45c4f41b792e4b7c52eaf21b9540112887e861b.tar.gz
busybox-w32-f45c4f41b792e4b7c52eaf21b9540112887e861b.tar.bz2
busybox-w32-f45c4f41b792e4b7c52eaf21b9540112887e861b.zip
whitespace and comment fixes, no code changes
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r--modutils/modprobe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index db946bb2e..84a2d7686 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -232,10 +232,10 @@ static char *parse_command_string(char *src, char **dst)
232#endif /* ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS */ 232#endif /* ENABLE_FEATURE_MODPROBE_MULTIPLE_OPTIONS */
233 233
234static int is_conf_command(char *buffer, const char *command) 234static int is_conf_command(char *buffer, const char *command)
235{ 235{
236 int len = strlen(command); 236 int len = strlen(command);
237 return ((strstr(buffer, command) == buffer) && 237 return ((strstr(buffer, command) == buffer) &&
238 isspace(buffer[len])); 238 isspace(buffer[len]));
239} 239}
240 240
241/* 241/*
@@ -325,7 +325,7 @@ static void include_conf(struct dep_t **first, struct dep_t **current, char *buf
325 include_conf(first, current, buffer, buflen, fdi); 325 include_conf(first, current, buffer, buflen, fdi);
326 close(fdi); 326 close(fdi);
327 } 327 }
328 } else if (ENABLE_FEATURE_MODPROBE_BLACKLIST && 328 } else if (ENABLE_FEATURE_MODPROBE_BLACKLIST &&
329 (is_conf_command(buffer, "blacklist"))) { 329 (is_conf_command(buffer, "blacklist"))) {
330 char *mod; 330 char *mod;
331 struct dep_t *dt; 331 struct dep_t *dt;