Skip to contentSkip to conversation

kernel/params.c: fix lying comment for param_array()

PTACH Bert Wesarg 1 participant 1 message Apr 2, 2007

lore
Share & tools
lore
#0 lore raw

From: Bert Wesarg <[email protected]>

This fixes the comment for the function param_array. Which lies that it only *temporarily* mangle the input string @val.

---

PS: please CC me, because i'm not subscripted to this list

 kernel/params.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
kernel/params.c +1 -1
diff --quilt old/kernel/params.c new/kernel/params.c
@@ -267,11 +267,11 @@ int param_get_invbool(char *buffer, stru
 
 	val = !*(int *)kp->arg;
 	return param_get_bool(buffer, &dummy);
 }
 
-/* We cheat here and temporarily mangle the string. */
+/* We break the rule and mangle the string. */
 static int param_array(const char *name,
 		       const char *val,
 		       unsigned int min, unsigned int max,
 		       void *elem, int elemsize,
 		       int (*set)(const char *, struct kernel_param *kp),