From: Stephen Hemminger <shemminger@osdl.org>
To: Patrick Mochel <mochel@osdl.org>, Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kobject rename can take const char
Date: Fri, 15 Aug 2003 11:22:17 -0700 [thread overview]
Message-ID: <20030815112217.1c8c13e5.shemminger@osdl.org> (raw)
kobject_rename doesn't change the name string.
diff -Nru a/include/linux/kobject.h b/include/linux/kobject.h
--- a/include/linux/kobject.h Fri Aug 15 11:19:55 2003
+++ b/include/linux/kobject.h Fri Aug 15 11:19:55 2003
@@ -39,7 +39,7 @@
extern int kobject_add(struct kobject *);
extern void kobject_del(struct kobject *);
-extern void kobject_rename(struct kobject *, char *new_name);
+extern void kobject_rename(struct kobject *, const char *new_name);
extern int kobject_register(struct kobject *);
extern void kobject_unregister(struct kobject *);
diff -Nru a/lib/kobject.c b/lib/kobject.c
--- a/lib/kobject.c Fri Aug 15 11:19:55 2003
+++ b/lib/kobject.c Fri Aug 15 11:19:55 2003
@@ -319,7 +319,7 @@
* @new_name: object's new name
*/
-void kobject_rename(struct kobject * kobj, char *new_name)
+void kobject_rename(struct kobject * kobj, const char *new_name)
{
kobj = kobject_get(kobj);
if (!kobj)
next reply other threads:[~2003-08-15 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-15 18:22 Stephen Hemminger [this message]
2003-08-15 19:21 ` [PATCH] kobject rename can take const char Patrick Mochel
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=20030815112217.1c8c13e5.shemminger@osdl.org \
--to=shemminger@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.org \
/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;
as well as URLs for NNTP newsgroup(s).