* [PATCH] kobject rename can take const char
@ 2003-08-15 18:22 Stephen Hemminger
2003-08-15 19:21 ` Patrick Mochel
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2003-08-15 18:22 UTC (permalink / raw)
To: Patrick Mochel, Greg KH; +Cc: linux-kernel
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kobject rename can take const char
2003-08-15 18:22 [PATCH] kobject rename can take const char Stephen Hemminger
@ 2003-08-15 19:21 ` Patrick Mochel
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mochel @ 2003-08-15 19:21 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Greg KH, linux-kernel
> kobject_rename doesn't change the name string.
Thanks, both applied.
Pat
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-15 19:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-15 18:22 [PATCH] kobject rename can take const char Stephen Hemminger
2003-08-15 19:21 ` Patrick Mochel
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).