summaryrefslogtreecommitdiff
path: root/libkmod
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2017-02-16 08:57:01 -0800
committerLucas De Marchi <lucas.demarchi@intel.com>2017-02-16 08:57:01 -0800
commit8df21177fba3f556d1a3e75d2648c50dfcf09ad0 (patch)
tree2b88c6eb5710e2c34d53465b89a3a107f7f60861 /libkmod
parentb1982674ae994b6ceda36dbee3fba3b2a6ba10de (diff)
downloadkmod-8df21177fba3f556d1a3e75d2648c50dfcf09ad0.tar.gz
kmod-8df21177fba3f556d1a3e75d2648c50dfcf09ad0.tar.bz2
kmod-8df21177fba3f556d1a3e75d2648c50dfcf09ad0.zip
libkmod-config: replace 0/1 with bool
Diffstat (limited to 'libkmod')
-rw-r--r--libkmod/libkmod-config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c
index 0596025..18f300a 100644
--- a/libkmod/libkmod-config.c
+++ b/libkmod/libkmod-config.c
@@ -496,8 +496,8 @@ static int kmod_config_parse_kcmdline(struct kmod_config *config)
{
char buf[KCMD_LINE_SIZE];
int fd, err;
- char *p, *modname, *param = NULL, *value = NULL, is_module = 1;
- bool is_quoted = false;
+ char *p, *modname, *param = NULL, *value = NULL;
+ bool is_quoted = false, is_module = true;
fd = open("/proc/cmdline", O_RDONLY|O_CLOEXEC);
if (fd < 0) {
@@ -528,7 +528,7 @@ static int kmod_config_parse_kcmdline(struct kmod_config *config)
kcmdline_parse_result(config, modname, param, value);
param = value = NULL;
modname = p + 1;
- is_module = 1;
+ is_module = true;
break;
case '.':
if (param == NULL) {
@@ -540,7 +540,7 @@ static int kmod_config_parse_kcmdline(struct kmod_config *config)
if (param != NULL)
value = p + 1;
else
- is_module = 0;
+ is_module = false;
break;
}
}