Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262324AbTEEOpd (ORCPT ); Mon, 5 May 2003 10:45:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262323AbTEEOpd (ORCPT ); Mon, 5 May 2003 10:45:33 -0400 Received: from [203.199.140.162] ([203.199.140.162]:44548 "EHLO calvin.codito.com") by vger.kernel.org with ESMTP id S262293AbTEEOp1 (ORCPT ); Mon, 5 May 2003 10:45:27 -0400 From: Amit Shah To: linux-serial@vger.kernel.org Subject: [PATCH][2.5] const char* to char* update in console.h Date: Mon, 5 May 2003 20:27:59 +0530 User-Agent: KMail/1.5.1 Cc: trivial@rustcorp.com.au, Kernel Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305052027.59853.shahamit@gmx.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1053 Lines: 32 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 +++ linux-2.5.69/include/linux/console.h Mon May 5 16:33:13 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); 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 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/