* [PTACH] kernel/params.c: fix lying comment for param_array()
@ 2007-04-02 20:43 Bert Wesarg
0 siblings, 0 replies; only message in thread
From: Bert Wesarg @ 2007-04-02 20:43 UTC (permalink / raw)
To: Rusty Russell; +Cc: linux-kernel
From: Bert Wesarg <wesarg@informatik.uni-halle.de>
This fixes the comment for the function param_array. Which lies that it
only *temporarily* mangle the input string @val.
Signed-off-by: Bert Wesarg <wesarg@informatik.uni-halle.de>
---
PS: please CC me, because i'm not subscripted to this list
kernel/params.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff --quilt old/kernel/params.c new/kernel/params.c
--- 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),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-02 21:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 20:43 [PTACH] kernel/params.c: fix lying comment for param_array() Bert Wesarg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®