diff options
author | Nicola Murino | 2020-10-20 17:06:51 +0200 |
---|---|---|
committer | Nicola Murino | 2020-10-20 17:06:51 +0200 |
commit | 3f4095f10ed032277911acf112aeaf382d817e90 (patch) | |
tree | 678549efd69eb918bcf2f3c21be95ebcad8b2bbd /0003-interfaces-Remove-unused-win32-code.patch | |
parent | dcbaa1959960c83abc5daee9ce0325ce27b64a4c (diff) | |
download | aur-3f4095f10ed032277911acf112aeaf382d817e90.tar.gz |
Update to 0.1.17
Diffstat (limited to '0003-interfaces-Remove-unused-win32-code.patch')
-rw-r--r-- | 0003-interfaces-Remove-unused-win32-code.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/0003-interfaces-Remove-unused-win32-code.patch b/0003-interfaces-Remove-unused-win32-code.patch new file mode 100644 index 000000000000..8ae0788e8e03 --- /dev/null +++ b/0003-interfaces-Remove-unused-win32-code.patch @@ -0,0 +1,59 @@ +From 8ad450a37365799af3259d070a07405b847650b4 Mon Sep 17 00:00:00 2001 +From: Nirbheek Chauhan <nirbheek@centricular.com> +Date: Thu, 9 Jul 2020 17:55:08 +0530 +Subject: [PATCH 3/4] interfaces: Remove unused win32 code + +--- + agent/interfaces.c | 36 ------------------------------------ + 1 file changed, 36 deletions(-) + +diff --git a/agent/interfaces.c b/agent/interfaces.c +index 309ca65..9a5300e 100644 +--- a/agent/interfaces.c ++++ b/agent/interfaces.c +@@ -497,42 +497,6 @@ nice_interfaces_get_ip_for_interface (gchar *interface_name) + #define MIB_IPADDR_DELETED 0x0040 + #endif + +-#if 0 +-static gboolean started_wsa_engine = FALSE; +- +-/* +- * private function that initializes the WinSock engine and +- * returns a prebuilt socket +- */ +-SOCKET nice_interfaces_get_WSA_socket () +-{ +- WORD wVersionRequested; +- WSADATA wsaData; +- int err; +- SOCKET sock; +- +- if (started_wsa_engine == FALSE) { +- wVersionRequested = MAKEWORD ( 2, 0 ); +- +- err = WSAStartup ( wVersionRequested, &wsaData ); +- if ( err != 0 ) { +- nice_debug ("Error : Could not start the winsocket engine"); +- return INVALID_SOCKET; +- } +- started_wsa_engine = TRUE; +- } +- +- +- if ((sock = socket (AF_INET, SOCK_DGRAM, 0)) == INVALID_SOCKET) { +- nice_debug ("Error : Could not open socket to retrieve interface list," +- " error no : %d", WSAGetLastError ()); +- return INVALID_SOCKET; +- } +- +- return sock; +-} +-#endif +- + GList * nice_interfaces_get_local_interfaces (void) + { + ULONG size = 0; +-- +2.27.0.windows.1 + |