aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/params.c')
-rw-r--r--kernel/params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/params.c b/kernel/params.c
index de273ec85bd2..023abbf5f89f 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -272,13 +272,13 @@ int param_set_invbool(const char *val, struct kernel_param *kp)
272 dummy.arg = &boolval; 272 dummy.arg = &boolval;
273 ret = param_set_bool(val, &dummy); 273 ret = param_set_bool(val, &dummy);
274 if (ret == 0) 274 if (ret == 0)
275 *(int *)kp->arg = !boolval; 275 *(bool *)kp->arg = !boolval;
276 return ret; 276 return ret;
277} 277}
278 278
279int param_get_invbool(char *buffer, struct kernel_param *kp) 279int param_get_invbool(char *buffer, struct kernel_param *kp)
280{ 280{
281 return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'N' : 'Y'); 281 return sprintf(buffer, "%c", (*(bool *)kp->arg) ? 'N' : 'Y');
282} 282}
283 283
284/* We break the rule and mangle the string. */ 284/* We break the rule and mangle the string. */