Skip to contentSkip to conversation

const char* to char* update in console.h

TRIVIAL Rusty Trivial Russell 1 participant 1 message Apr 18, 2003 Console

lore
Share & tools
lore
#0 lore raw

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

From: Amit Shah <[email protected]>

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.

include/linux/console.h renamed from include/linux/console.h.orig +1 -1
@@ -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 *);
Signature · 2 lines
  Don't blame me: the Monkey is driving
  File: Amit Shah <[email protected]>: [TRIVIAL] [PATCH][2.5] const char_ to char_ update in console.h