From b4c3f31e666236ec63358533559a470bff1dfbfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 25 Feb 2017 12:43:25 +0000 Subject: [PATCH] W32: adapt the code to GNUNET_memcpy() that returns nothing --- src/util/win.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/util/win.c b/src/util/win.c index 7cd7e0f3c..97877b0ca 100644 --- a/src/util/win.c +++ b/src/util/win.c @@ -534,10 +534,9 @@ EnumNICs3 (struct EnumNICs3_results **results, int *results_count) for (i = 0; !found && i < interfaces4_len / sizeof (INTERFACE_INFO); i++) { struct sockaddr_in *m = (struct sockaddr_in *) &r->mask; - if (GNUNET_memcpy (&interfaces4[i].iiAddress.Address, + GNUNET_memcpy (&interfaces4[i].iiAddress.Address, unicast->Address.lpSockaddr, - unicast->Address.iSockaddrLength) != 0) - continue; + unicast->Address.iSockaddrLength); found = 1; GNUNET_memcpy (&r->address, &interfaces4[i].iiAddress.Address, sizeof (struct sockaddr_in)); @@ -557,10 +556,9 @@ EnumNICs3 (struct EnumNICs3_results **results, int *results_count) interfaces6 != NULL && !found && i < interfaces6->iAddressCount; i++) { - if (GNUNET_memcpy (interfaces6->Address[i].lpSockaddr, + GNUNET_memcpy (interfaces6->Address[i].lpSockaddr, unicast->Address.lpSockaddr, - unicast->Address.iSockaddrLength) != 0) - continue; + unicast->Address.iSockaddrLength); found = 1; GNUNET_memcpy (&r->address, interfaces6->Address[i].lpSockaddr, sizeof (struct sockaddr_in6)); -- 2.25.1