From patchwork Tue Mar 9 22:26:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 47199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EC006B7D22 for ; Wed, 10 Mar 2010 10:30:33 +1100 (EST) Received: from localhost ([127.0.0.1]:59983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np8qo-0002iH-FL for incoming@patchwork.ozlabs.org; Tue, 09 Mar 2010 18:28:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np8l0-00073S-H2 for qemu-devel@nongnu.org; Tue, 09 Mar 2010 18:22:34 -0500 Received: from [199.232.76.173] (port=42643 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np8kz-00072u-VX for qemu-devel@nongnu.org; Tue, 09 Mar 2010 18:22:34 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Np8ky-0007Dr-U3 for qemu-devel@nongnu.org; Tue, 09 Mar 2010 18:22:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1025) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Np8ky-0007Db-IR for qemu-devel@nongnu.org; Tue, 09 Mar 2010 18:22:32 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o29MQIIG001512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Mar 2010 17:26:18 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o29MQ3Qf017445; Tue, 9 Mar 2010 17:26:15 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 9 Mar 2010 23:26:02 +0100 Message-Id: <6be4897d8984b612bf66186128b562d1c76e6aa9.1268173345.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 8/9] remove useless cast X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org values are alread pointers, no need to cast them to void * Signed-off-by: Juan Quintela --- migration-exec.c | 2 +- migration-fd.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/migration-exec.c b/migration-exec.c index 76518a6..fddbd70 100644 --- a/migration-exec.c +++ b/migration-exec.c @@ -142,7 +142,7 @@ int exec_start_incoming_migration(const char *command) qemu_set_fd_read_handler(qemu_stdio_fd(f), exec_accept_incoming_migration, - (void *)(unsigned long)f); + f); return 0; } diff --git a/migration-fd.c b/migration-fd.c index 8a4c2b8..e683a82 100644 --- a/migration-fd.c +++ b/migration-fd.c @@ -136,8 +136,7 @@ int fd_start_incoming_migration(const char *infd) return -errno; } - qemu_set_fd_read_handler(fd, fd_accept_incoming_migration, - (void *)(unsigned long)f); + qemu_set_fd_read_handler(fd, fd_accept_incoming_migration, f); return 0; }