diff options
author | Avi Kivity <avi@redhat.com> | 2009-07-29 10:39:59 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-07-29 10:39:59 +0300 |
commit | 862bb07ea610a8f4a0c82964c82185f1a291120d (patch) | |
tree | eea18137087abbac16f027d4edb2f751cf4397ae /net.c | |
parent | Merge commit 'fc5d642fcae392bbc9fed9ac6bc78ac29ed48372' into upstream-merge (diff) | |
parent | Remove useless Win32 include files and unused function in net.c. (diff) | |
download | qemu-kvm-862bb07ea610a8f4a0c82964c82185f1a291120d.tar.gz qemu-kvm-862bb07ea610a8f4a0c82964c82185f1a291120d.tar.bz2 qemu-kvm-862bb07ea610a8f4a0c82964c82185f1a291120d.zip |
Merge commit '8fde6546fbe5a63df584819b1279086030e410a9' into upstream-merge
* commit '8fde6546fbe5a63df584819b1279086030e410a9':
Remove useless Win32 include files and unused function in net.c.
tap-win32: Use correct headers.
fix broken migration
Conflicts:
net.c
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -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 - // FIXME: #include "qemu-kvm.h" #include "qemu-common.h" #include "net.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), |