Commit 8fde6546fbe5a63df584819b1279086030e410a9
Committed by
Anthony Liguori
1 parent
f8bfb1dc
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>
Showing
1 changed file
with
0 additions
and
29 deletions
net.c
| ... | ... | @@ -101,15 +101,6 @@ |
| 101 | 101 | #include <libvdeplug.h> |
| 102 | 102 | #endif |
| 103 | 103 | |
| 104 | -#ifdef _WIN32 | |
| 105 | -#include <windows.h> | |
| 106 | -#include <malloc.h> | |
| 107 | -#include <sys/timeb.h> | |
| 108 | -#include <mmsystem.h> | |
| 109 | -#define getopt_long_only getopt_long | |
| 110 | -#define memalign(align, size) malloc(size) | |
| 111 | -#endif | |
| 112 | - | |
| 113 | 104 | #include "qemu-common.h" |
| 114 | 105 | #include "net.h" |
| 115 | 106 | #include "monitor.h" |
| ... | ... | @@ -279,26 +270,6 @@ int parse_host_port(struct sockaddr_in *saddr, const char *str) |
| 279 | 270 | return 0; |
| 280 | 271 | } |
| 281 | 272 | |
| 282 | -#if !defined(_WIN32) && 0 | |
| 283 | -static int parse_unix_path(struct sockaddr_un *uaddr, const char *str) | |
| 284 | -{ | |
| 285 | - const char *p; | |
| 286 | - int len; | |
| 287 | - | |
| 288 | - len = MIN(108, strlen(str)); | |
| 289 | - p = strchr(str, ','); | |
| 290 | - if (p) | |
| 291 | - len = MIN(len, p - str); | |
| 292 | - | |
| 293 | - memset(uaddr, 0, sizeof(*uaddr)); | |
| 294 | - | |
| 295 | - uaddr->sun_family = AF_UNIX; | |
| 296 | - memcpy(uaddr->sun_path, str, len); | |
| 297 | - | |
| 298 | - return 0; | |
| 299 | -} | |
| 300 | -#endif | |
| 301 | - | |
| 302 | 273 | void qemu_format_nic_info_str(VLANClientState *vc, uint8_t macaddr[6]) |
| 303 | 274 | { |
| 304 | 275 | snprintf(vc->info_str, sizeof(vc->info_str), | ... | ... |