aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2009-07-27 10:02:02 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:15 -0500
commit8fde6546fbe5a63df584819b1279086030e410a9 (patch)
tree54e7b99ba006a95fe58a30276ad77200eb030daf /net.c
parentf8bfb1dc8b7714f01b414d1845c855264cb4f6bd (diff)
Remove useless Win32 include files and unused function in net.c.
Signed-off-by: Filip Navara <filip.navara@gmail.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r--net.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/net.c b/net.c
index cf6b0337ef..728ea5e7a3 100644
--- a/net.c
+++ b/net.c
@@ -101,15 +101,6 @@
#include <libvdeplug.h>
#endif
-#ifdef _WIN32
-#include <windows.h>
-#include <malloc.h>
-#include <sys/timeb.h>
-#include <mmsystem.h>
-#define getopt_long_only getopt_long
-#define memalign(align, size) malloc(size)
-#endif
-
#include "qemu-common.h"
#include "net.h"
#include "monitor.h"
@@ -279,26 +270,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),