Skip to contentSkip to conversation

[2.5] const char* to char* conversion in console.h

PATCH New Amit Shah 1 participant 1 message Apr 1, 2003

lore
Share & tools
lore

Amit Shah

author
#0 lore raw

PATCH 1/1 [2.5] const char* to char* conversion in console.h

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.

linux/console.h Tue Apr 1 18:32:46 2003 renamed from linux/console.h.orig Tue Apr 1 18:32:24 2003 +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 · 5 lines
Amit Shah
http://amitshah.nav.to/

A: No.
Q: Should I include quotations after my reply?