From 40ee8dadca79b97f830ba9ee04130ba0f46e390b Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Wed, 28 Dec 2011 15:01:16 -0200 Subject: [PATCH] Do not forget parenthesis around if (streq(A, B)). --- libkmod/libkmod-config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.47.2