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

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

Post by Amit Sha » Wed, 02 Apr 2003 15:20:14



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:39:34 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.
--
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. is malloc() a thread safe and reentant function

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

4. c++ directory tree recursion

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

6. ftape problem on Exabyte TR-3

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

8. X for linux video

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

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

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

12. raw char * buffer to char * printable string conversion issue

13. unsigned char to a char* conversion ?