From patchwork Tue Apr 5 14:46:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ed Maste X-Patchwork-Id: 8752711 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 257709F3D1 for ; Tue, 5 Apr 2016 14:46:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FF4E20384 for ; Tue, 5 Apr 2016 14:46:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3B3420383 for ; Tue, 5 Apr 2016 14:46:57 +0000 (UTC) Received: from localhost ([::1]:37491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anSFs-0000mH-9q for patchwork-qemu-devel@patchwork.kernel.org; Tue, 05 Apr 2016 10:46:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anSFf-0000hw-CU for qemu-devel@nongnu.org; Tue, 05 Apr 2016 10:46:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anSFb-0000T3-Gu for qemu-devel@nongnu.org; Tue, 05 Apr 2016 10:46:43 -0400 Received: from [72.143.111.78] (port=10682 helo=freebsd.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anSFb-0000SC-Ay for qemu-devel@nongnu.org; Tue, 05 Apr 2016 10:46:39 -0400 Received: from emaste (uid 1001) (envelope-from emaste@freebsd.org) id a005d by freebsd.org (DragonFly Mail Agent 1); Tue, 05 Apr 2016 10:46:37 -0400 From: Ed Maste To: qemu-devel@nongnu.org Date: Tue, 5 Apr 2016 10:46:33 -0400 Message-Id: <1459867593-72017-1-git-send-email-emaste@freebsd.org> X-Mailer: git-send-email 2.4.6 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 72.143.111.78 Cc: qemu-trivial@nongnu.org, Ed Maste Subject: [Qemu-devel] [PATCH] bsd-user: Suppress gcc 4.x -Wpointer-sign (included in -Wall) warning X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is the same change as b55266b5 in linux-user. Signed-off-by: Ed Maste --- bsd-user/uaccess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsd-user/uaccess.c b/bsd-user/uaccess.c index b7b3a06..91e2067 100644 --- a/bsd-user/uaccess.c +++ b/bsd-user/uaccess.c @@ -51,7 +51,7 @@ abi_long target_strlen(abi_ulong guest_addr1) ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); if (!ptr) return -TARGET_EFAULT; - len = qemu_strnlen((char *)ptr, max_len); + len = qemu_strnlen((const char *)ptr, max_len); unlock_user(ptr, guest_addr, 0); guest_addr += len; /* we don't allow wrapping or integer overflow */