mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bert Wesarg <wesarg@informatik.uni-halle.de>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: [PTACH] kernel/params.c: fix lying comment for param_array()
Date: Mon, 02 Apr 2007 22:43:13 +0200 (MEST)	[thread overview]
Message-ID: <Pine.GSO.4.56.0704022241010.6377@turing> (raw)

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),

                 reply	other threads:[~2007-04-02 21:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.56.0704022241010.6377@turing \
    --to=wesarg@informatik.uni-halle.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®