[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31586 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31586 - gnunet/src/gns |
Date: |
Thu, 19 Dec 2013 19:39:19 +0100 |
Author: LRN
Date: 2013-12-19 19:39:19 +0100 (Thu, 19 Dec 2013)
New Revision: 31586
Modified:
gnunet/src/gns/w32nsp.c
Log:
Remove unused macros, use a different error code for early bailouts
Modified: gnunet/src/gns/w32nsp.c
===================================================================
--- gnunet/src/gns/w32nsp.c 2013-12-19 18:39:17 UTC (rev 31585)
+++ gnunet/src/gns/w32nsp.c 2013-12-19 18:39:19 UTC (rev 31586)
@@ -77,13 +77,6 @@
#define NSPAPI_VERSION_MAJOR 4
#define NSPAPI_VERSION_MINOR 4
-#define REPLY_LIFETIME 60*5
-
-#define STATE_BEGIN 0x01
-#define STATE_END 0x02
-#define STATE_REPLY 0x04
-#define STATE_GHBN 0x08
-
static CRITICAL_SECTION records_cs;
struct record
@@ -318,7 +311,7 @@
if (lpqsRestrictions->dwNameSpace != NS_DNS &&
lpqsRestrictions->dwNameSpace != NS_ALL)
{
DEBUGLOG ("GNUNET_W32NSP_LookupServiceBegin: wrong namespace\n");
- SetLastError (WSANO_DATA);
+ SetLastError (WSAEINVAL);
return SOCKET_ERROR;
}
if (lpqsRestrictions->lpszServiceInstanceName != NULL)
@@ -334,7 +327,7 @@
else
{
DEBUGLOG ("GNUNET_W32NSP_LookupServiceBegin: unsupported TLD\n");
- SetLastError (WSANO_DATA);
+ SetLastError (WSAEINVAL);
return SOCKET_ERROR;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31586 - gnunet/src/gns,
gnunet <=