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

From: Amit Shah (shahamit@gmx.net)
Date: Tue Apr 01 2003 - 08:09:17 EST


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.orig Tue Apr 1 18:32:24 2003
+++ include/linux/console.h Tue Apr 1 18:32:46 2003
@@ -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 *);

-- 
Amit Shah
http://amitshah.nav.to/

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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:13 EST