From: Rusty Trivial Russell <rusty@rustcorp.com.au>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: [TRIVIAL] const char* to char* update in console.h
Date: Fri, 18 Apr 2003 17:46:46 +1000 [thread overview]
Message-ID: <20030418080205.17A3D2C110@lists.samba.org> (raw)
[ Not sure who is responsible for this, but seems correct -- RR]
From: Amit Shah <amitshah@gmx.net>
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.
--- trivial-2.5.67-bk8/include/linux/console.h.orig 2003-04-18 17:43:45.000000000 +1000
+++ trivial-2.5.67-bk8/include/linux/console.h 2003-04-18 17:43:45.000000000 +1000
@@ -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 *);
--
Don't blame me: the Monkey is driving
File: Amit Shah <amitshah@gmx.net>: [TRIVIAL] [PATCH][2.5] const char_ to char_ update in console.h
next reply other threads:[~2003-04-18 7:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-18 7:46 Rusty Trivial Russell [this message]
2003-05-26 6:32 [TRIVIAL] const char* to char* update in console.h Rusty Trivial Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030418080205.17A3D2C110@lists.samba.org \
--to=rusty@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).