From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAhUm-000287-2y for qemu-devel@nongnu.org; Fri, 04 Jan 2008 03:01:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAhUj-00027v-IF for qemu-devel@nongnu.org; Fri, 04 Jan 2008 03:01:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAhUj-00027s-Ci for qemu-devel@nongnu.org; Fri, 04 Jan 2008 03:01:33 -0500 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JAhUj-00082u-3F for qemu-devel@nongnu.org; Fri, 04 Jan 2008 03:01:33 -0500 Received: from tapir.sajinet.com.pe ([66.139.79.212]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAhUh-0002Vj-53 for qemu-devel@nongnu.org; Fri, 04 Jan 2008 03:01:31 -0500 Date: Fri, 4 Jan 2008 02:10:41 -0600 From: Carlo Marcelo Arenas Belon Message-ID: <20080104081041.GB9968@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] ensure all invocations to bdrv_{read, write} use (uint8_t *) for its third parameter Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Trivial fix that ensures that all buffers used for bdrv_read or bdrv_write are from an array of the uint8_t type Carlo --- Index: block-vvfat.c =================================================================== RCS file: /sources/qemu/qemu/block-vvfat.c,v retrieving revision 1.16 diff -u -p -r1.16 block-vvfat.c --- block-vvfat.c 24 Dec 2007 13:26:04 -0000 1.16 +++ block-vvfat.c 4 Jan 2008 07:57:20 -0000 @@ -340,7 +340,7 @@ typedef struct BDRVVVFATState { int current_fd; mapping_t* current_mapping; unsigned char* cluster; /* points to current cluster */ - unsigned char* cluster_buffer; /* points to a buffer to hold temp data */ + uint8_t* cluster_buffer; /* points to a buffer to hold temp data */ unsigned int current_cluster; /* write support */ Index: block.c =================================================================== RCS file: /sources/qemu/qemu/block.c,v retrieving revision 1.53 diff -u -p -r1.53 block.c --- block.c 24 Dec 2007 16:10:43 -0000 1.53 +++ block.c 4 Jan 2008 07:57:21 -0000 @@ -459,7 +459,7 @@ int bdrv_commit(BlockDriverState *bs) BlockDriver *drv = bs->drv; int64_t i, total_sectors; int n, j; - unsigned char sector[512]; + uint8_t sector[512]; if (!drv) return -ENOMEDIUM;