From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7Usq-0000rg-49 for qemu-devel@nongnu.org; Mon, 31 Jul 2006 06:20:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7Usm-0000pq-8G for qemu-devel@nongnu.org; Mon, 31 Jul 2006 06:20:23 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7Usm-0000pn-5p for qemu-devel@nongnu.org; Mon, 31 Jul 2006 06:20:20 -0400 Received: from [66.249.82.196] (helo=wx-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7UvP-0003tN-Vy for qemu-devel@nongnu.org; Mon, 31 Jul 2006 06:23:04 -0400 Received: by wx-out-0102.google.com with SMTP id r21so250080wxc for ; Mon, 31 Jul 2006 03:20:19 -0700 (PDT) Message-ID: <44CDD962.7020900@gmail.com> Date: Mon, 31 Jul 2006 12:20:18 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040007000802030006040300" From: Dirk Behme Subject: [Qemu-devel] [PATCH] Fix warnings in mips_r4k.c 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 This is a multi-part message in MIME format. --------------040007000802030006040300 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Fix warnings hw/mips_r4k.c: In function ‘mips_r4kc_init’: hw/mips_r4k.c:230: warning: pointer targets in passing argument 3 of ‘load_elf’ differ in signedness hw/mips_r4k.c:256: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness --------------040007000802030006040300 Content-Type: text/x-patch; name="mips_r4k_warning.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mips_r4k_warning.patch" --- ./hw/mips_r4k.c_orig 2006-07-31 12:11:32.000000000 +0200 +++ ./hw/mips_r4k.c 2006-07-31 12:14:55.000000000 +0200 @@ -195,7 +195,7 @@ void mips_r4kc_init (int ram_size, int v const char *initrd_filename) { char buf[1024]; - int64_t entry = 0; + uint64_t entry = 0; unsigned long bios_offset; int io_memory; int ret; @@ -253,7 +253,7 @@ void mips_r4kc_init (int ram_size, int v } /* Store command line. */ - strcpy (phys_ram_base + (16 << 20) - 256, kernel_cmdline); + strcpy ((char *)phys_ram_base + (16 << 20) - 256, kernel_cmdline); /* FIXME: little endian support */ *(int *)(phys_ram_base + (16 << 20) - 260) = tswap32 (0x12345678); *(int *)(phys_ram_base + (16 << 20) - 264) = tswap32 (ram_size); --------------040007000802030006040300--