From: Leandro Pereira Date: Wed, 28 Dec 2011 17:01:16 +0000 (-0200) Subject: Do not forget parenthesis around if (streq(A, B)). X-Git-Tag: v3~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40ee8dadca79b97f830ba9ee04130ba0f46e390b;p=thirdparty%2Fkmod.git Do not forget parenthesis around if (streq(A, B)). --- diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index 0874dd40..2c9fc2bd 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -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)