aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-helper-service-w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-gns-helper-service-w32.c')
-rw-r--r--src/gns/gnunet-gns-helper-service-w32.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c
index 4e5aeffc5..26a3f688a 100644
--- a/src/gns/gnunet-gns-helper-service-w32.c
+++ b/src/gns/gnunet-gns-helper-service-w32.c
@@ -172,7 +172,7 @@ transmit_callback (void *cls, size_t size, void *buf)
172 * @param msg message to transmit, will be freed! 172 * @param msg message to transmit, will be freed!
173 */ 173 */
174static void 174static void
175transmit (struct GNUNET_SERVER_Client *client, 175transmit (struct GNUNET_SERVER_Client *client,
176 struct GNUNET_MessageHeader *msg) 176 struct GNUNET_MessageHeader *msg)
177{ 177{
178 struct TransmitCallbackContext *tcc; 178 struct TransmitCallbackContext *tcc;
@@ -188,7 +188,7 @@ transmit (struct GNUNET_SERVER_Client *client,
188 tcc->msg = msg; 188 tcc->msg = msg;
189 if (NULL == 189 if (NULL ==
190 (tcc->th = 190 (tcc->th =
191 GNUNET_SERVER_notify_transmit_ready (client, 191 GNUNET_SERVER_notify_transmit_ready (client,
192 ntohs (msg->size), 192 ntohs (msg->size),
193 GNUNET_TIME_UNIT_FOREVER_REL, 193 GNUNET_TIME_UNIT_FOREVER_REL,
194 &transmit_callback, tcc))) 194 &transmit_callback, tcc)))
@@ -242,7 +242,7 @@ MarshallWSAQUERYSETW (WSAQUERYSETW *qs, GUID *sc)
242 242
243 243
244static void 244static void
245process_ip_lookup_result (void* cls, 245process_ip_lookup_result (void* cls,
246 uint32_t rd_count, 246 uint32_t rd_count,
247 const struct GNUNET_NAMESTORE_RecordData *rd) 247 const struct GNUNET_NAMESTORE_RecordData *rd)
248{ 248{
@@ -547,7 +547,7 @@ get_ip_from_hostname (struct GNUNET_SERVER_Client *client,
547 namelen = 0; 547 namelen = 0;
548 if (namelen > 0) 548 if (namelen > 0)
549 hostname = (char *) u16_to_u8 (name, namelen + 1, NULL, &strl); 549 hostname = (char *) u16_to_u8 (name, namelen + 1, NULL, &strl);
550 550
551 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 551 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
552 "W32 DNS resolver asked to look up %s for `%s'.\n", 552 "W32 DNS resolver asked to look up %s for `%s'.\n",
553 af == AF_INET ? "IPv4" : af == AF_INET6 ? "IPv6" : "anything", 553 af == AF_INET ? "IPv4" : af == AF_INET6 ? "IPv6" : "anything",
@@ -631,7 +631,7 @@ handle_get (void *cls, struct GNUNET_SERVER_Client *client,
631 sc.Data1, sc.Data2, sc.Data3, data4); 631 sc.Data1, sc.Data2, sc.Data3, data4);
632 for (i = 0; i < 8; i++) 632 for (i = 0; i < 8; i++)
633 sc.Data4[i] = 0xFF & (data4 >> ((7 - i) * 8)); 633 sc.Data4[i] = 0xFF & (data4 >> ((7 - i) * 8));
634 634
635 hostname = (const wchar_t *) &msg[1]; 635 hostname = (const wchar_t *) &msg[1];
636 if (hostname[size - 1] != L'\0') 636 if (hostname[size - 1] != L'\0')
637 { 637 {