From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ6PU-0008GK-WF for qemu-devel@nongnu.org; Tue, 23 Jun 2009 09:51:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ6PT-0008FI-TG for qemu-devel@nongnu.org; Tue, 23 Jun 2009 09:51:40 -0400 Received: from [199.232.76.173] (port=52624 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ6PT-0008FB-MC for qemu-devel@nongnu.org; Tue, 23 Jun 2009 09:51:39 -0400 Received: from a40-prg1-8-129.static.adsl.vol.cz ([88.146.54.129]:27348 helo=FilipNavara-PC) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MJ6PS-0006PS-Uq for qemu-devel@nongnu.org; Tue, 23 Jun 2009 09:51:39 -0400 From: Filip Navara Sender: Filip Navara MIME-Version: 1.0 Content-Type: text/plain; boundary=WC_MAIL_PaRt_BoUnDaRy_05151998 Message-Id: Subject: [Qemu-devel] [PATCH] Remove useless Win32 include files and unused function in net.c. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 23 Jun 2009 13:51:41 -0000 To: qemu-devel@nongnu.org Signed-off-by: Filip Navara --- net.c | 29 ----------------------------- 1 files changed, 0 insertions(+), 29 deletions(-) diff --git a/net.c b/net.c index 65810a0..f3da189 100644 --- a/net.c +++ b/net.c @@ -101,15 +101,6 @@ #include #endif -#ifdef _WIN32 -#include -#include -#include -#include -#define getopt_long_only getopt_long -#define memalign(align, size) malloc(size) -#endif - #include "qemu-common.h" #include "net.h" #include "monitor.h" @@ -280,26 +271,6 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str) return 0; } -#if !defined(_WIN32) && 0 -static int parse_unix_path(struct sockaddr_un *uaddr, const char *str) -{ - const char *p; - int len; - - len = MIN(108, strlen(str)); - p = strchr(str, ','); - if (p) - len = MIN(len, p - str); - - memset(uaddr, 0, sizeof(*uaddr)); - - uaddr->sun_family = AF_UNIX; - memcpy(uaddr->sun_path, str, len); - - return 0; -} -#endif - void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) { snprintf(vc->info_str, sizeof(vc->info_str), -- 1.6.3.msysgit.0