lkml.org 
[lkml]   [2007]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PTACH] kernel/params.c: fix lying comment for param_array()
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),
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-04-02 23:11    [W:0.141 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site