From patchwork Fri Jan 13 10:51:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 135786 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8FE14B6EF7 for ; Fri, 13 Jan 2012 21:53:21 +1100 (EST) Received: from localhost ([::1]:49070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlel5-00086P-Hk for incoming@patchwork.ozlabs.org; Fri, 13 Jan 2012 05:53:19 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlekv-00084J-DU for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:53:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rlekt-0001Kd-1G for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:53:09 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:59258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rleks-0001K8-Nz for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:53:06 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 13 Jan 2012 10:53:00 -0000 Received: from d06nrmr1707.portsmouth.uk.ibm.com ([9.149.39.225]) by e06smtp14.uk.ibm.com ([192.168.101.144]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 13 Jan 2012 10:52:57 -0000 Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0DAqubP2592914 for ; Fri, 13 Jan 2012 10:52:56 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0DAqu83027916 for ; Fri, 13 Jan 2012 03:52:56 -0700 Received: from localhost (stefanha-thinkpad.manchester-maybrook.uk.ibm.com [9.174.219.31]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q0DAqtpb027913; Fri, 13 Jan 2012 03:52:55 -0700 From: Stefan Hajnoczi To: Anthony Liguori Date: Fri, 13 Jan 2012 10:51:38 +0000 Message-Id: <1326451900-18325-11-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1326451900-18325-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1326451900-18325-1-git-send-email-stefanha@linux.vnet.ibm.com> x-cbid: 12011310-1948-0000-0000-000000A0F698 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.110 Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 10/12] virtfs-proxy-helper: Clean include files 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Stefan Weil The common standard include files are already included via qemu-common.h, and for the socket related include files there is qemu_socket.h, so the code can be reduced by some lines. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- fsdev/virtfs-proxy-helper.c | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index ce7eb79..21e9b16 100644 --- a/fsdev/virtfs-proxy-helper.c +++ b/fsdev/virtfs-proxy-helper.c @@ -8,31 +8,20 @@ * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. */ -#include -#include -#include -#include -#include -#include -#include -#include + #include -#include #include -#include #include #include #include -#include -#include #include -#include #include #include #ifdef CONFIG_LINUX_MAGIC_H #include #endif #include "qemu-common.h" +#include "qemu_socket.h" #include "qemu-xattr.h" #include "virtio-9p-marshal.h" #include "hw/9pfs/virtio-9p-proxy.h"