linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TRIVIAL] const char* to char* update in console.h
@ 2003-04-18  7:46 Rusty Trivial Russell
  0 siblings, 0 replies; 2+ messages in thread
From: Rusty Trivial Russell @ 2003-04-18  7:46 UTC (permalink / raw)
  To: torvalds, linux-kernel

[ Not sure who is responsible for this, but seems correct -- RR]

From:  Amit Shah <amitshah@gmx.net>

  The read function for consoles in include/linux/console.h contains const 
  char* for a pointer that it will actually modify. Although no one seems 
  to be using this as of now, it should be corrected.
  

--- trivial-2.5.67-bk8/include/linux/console.h.orig	2003-04-18 17:43:45.000000000 +1000
+++ trivial-2.5.67-bk8/include/linux/console.h	2003-04-18 17:43:45.000000000 +1000
@@ -96,7 +96,7 @@
 {
 	char	name[8];
 	void	(*write)(struct console *, const char *, unsigned);
-	int	(*read)(struct console *, const char *, unsigned);
+       int     (*read)(struct console *, char *, unsigned);
 	kdev_t	(*device)(struct console *);
 	void	(*unblank)(void);
 	int	(*setup)(struct console *, char *);
-- 
  Don't blame me: the Monkey is driving
  File: Amit Shah <amitshah@gmx.net>: [TRIVIAL] [PATCH][2.5] const char_ to char_ update in console.h

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [TRIVIAL] const char* to char* update in console.h
@ 2003-05-26  6:32 Rusty Trivial Russell
  0 siblings, 0 replies; 2+ messages in thread
From: Rusty Trivial Russell @ 2003-05-26  6:32 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

From:  Amit Shah <shahamit@gmx.net>

  Hi all,
  
  (resending updated version for 2.5.69)
  
  The read function for consoles in include/linux/console.h contains const 
  char* for a pointer that it will actually modify. Although no one seems 
  to be using this as of now, it should be corrected.
  

--- trivial-2.5.69-bk18/include/linux/console.h.orig	2003-05-26 16:17:30.000000000 +1000
+++ trivial-2.5.69-bk18/include/linux/console.h	2003-05-26 16:17:30.000000000 +1000
@@ -96,7 +96,7 @@
 {
 	char	name[8];
 	void	(*write)(struct console *, const char *, unsigned);
-	int	(*read)(struct console *, const char *, unsigned);
+	int	(*read)(struct console *, char *, unsigned);
 	struct tty_driver *(*device)(struct console *, int *);
 	void	(*unblank)(void);
 	int	(*setup)(struct console *, char *);
-- 
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Amit Shah <shahamit@gmx.net>: [PATCH][2.5] const char_ to char_ update in console.h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-26  6:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-18  7:46 [TRIVIAL] const char* to char* update in console.h Rusty Trivial Russell
2003-05-26  6:32 Rusty Trivial Russell

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