]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Do not forget parenthesis around if (streq(A, B)).
authorLeandro Pereira <leandro@profusion.mobi>
Wed, 28 Dec 2011 17:01:16 +0000 (15:01 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 28 Dec 2011 17:54:38 +0000 (15:54 -0200)
libkmod/libkmod-config.c

index 0874dd40ac7ac07f421a3e463acd68094e717420..2c9fc2bd1fdc1580730e5b2e6a7ecb96d3b0cd0d 100644 (file)
@@ -535,7 +535,7 @@ static int kmod_config_parse(struct kmod_config *config, int fd,
                        kmod_config_add_options(config,
                                                underscores(ctx, modname),
                                                strtok_r(NULL, "\0", &saveptr));
-               } else if streq(cmd, "install") {
+               } else if (streq(cmd, "install")) {
                        char *modname = strtok_r(NULL, "\t ", &saveptr);
 
                        if (modname == NULL)
@@ -545,7 +545,7 @@ static int kmod_config_parse(struct kmod_config *config, int fd,
                                        underscores(ctx, modname),
                                        strtok_r(NULL, "\0", &saveptr),
                                        cmd, &config->install_commands);
-               } else if streq(cmd, "remove") {
+               } else if (streq(cmd, "remove")) {
                        char *modname = strtok_r(NULL, "\t ", &saveptr);
 
                        if (modname == NULL)
@@ -555,7 +555,7 @@ static int kmod_config_parse(struct kmod_config *config, int fd,
                                        underscores(ctx, modname),
                                        strtok_r(NULL, "\0", &saveptr),
                                        cmd, &config->remove_commands);
-               } else if streq(cmd, "softdep") {
+               } else if (streq(cmd, "softdep")) {
                        char *modname = strtok_r(NULL, "\t ", &saveptr);
 
                        if (modname == NULL)