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

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

Post by Amit Sha » Tue, 06 May 2003 17:10:07



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.

--- linux-2.5.69/include/linux/console.h.orig   Mon May  5 16:32:47 2003

 {
        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 *);

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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

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.

--- include/linux/console.h.orig        Tue Apr  1 18:32:24 2003

 {
        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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Solaris x86 and tokenring

3. const char* to char* update in console.h

4. DBM's, Perl, Apache, RedHat, DBMAuth

5. HELP.. Cannot install RH7.0

6. [2.4] const char* to char* conversion in console.h

7. Anybody know of a good 802.3x Ethernet simulator?

8. Gnu C++ stream.h char* form(const char*, ...)

9. 2.4.3-ac5 - static const char *foo to static char foo[]

10. C++: const int and const char* members in classes

11. [CALL FOR TESTERS] [const] char declarations, 2.5.41 update

12. char *strcasestr(char *haystack, char *needle) a simple case independent strstr()