gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29418 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r29418 - gnunet/src/transport
Date: Thu, 19 Sep 2013 15:09:18 +0200

Author: claudiu
Date: 2013-09-19 15:09:18 +0200 (Thu, 19 Sep 2013)
New Revision: 29418

Modified:
   gnunet/src/transport/Makefile.am
   gnunet/src/transport/gnunet-helper-transport-bluetooth.c
Log:
Removing the bluetooth tests on W32

Modified: gnunet/src/transport/Makefile.am
===================================================================
--- gnunet/src/transport/Makefile.am    2013-09-19 12:26:12 UTC (rev 29417)
+++ gnunet/src/transport/Makefile.am    2013-09-19 13:09:18 UTC (rev 29418)
@@ -82,11 +82,6 @@
  BT_BIN = gnunet-helper-transport-bluetooth
  BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
  BT_PLUGIN_TEST = test_plugin_bluetooth
- BT_API_TEST = test_transport_api_bluetooth
- BT_REL_TEST = test_transport_api_reliability_bluetooth
- BT_UREL_TEST = test_transport_api_unreliability_bluetooth
- BT_QUOTA_TEST = test_quota_compliance_bluetooth \
-    test_quota_compliance_bluetooth_asymmetric
 endif
 endif
 

Modified: gnunet/src/transport/gnunet-helper-transport-bluetooth.c
===================================================================
--- gnunet/src/transport/gnunet-helper-transport-bluetooth.c    2013-09-19 
12:26:12 UTC (rev 29417)
+++ gnunet/src/transport/gnunet-helper-transport-bluetooth.c    2013-09-19 
13:09:18 UTC (rev 29418)
@@ -82,7 +82,10 @@
     UINT8 mac[MAC_ADDR_SIZE];
   };
 
-  // {31191E56-FA7E-4517-870E-71B86BBCC52F}
+  /** 
+   * The UUID used for the SDP service.
+   * {31191E56-FA7E-4517-870E-71B86BBCC52F}
+   */
   #define GNUNET_BLUETOOTH_SDP_UUID \
     { \
       0x31, 0x19, 0x1E, 0x56, \
@@ -614,12 +617,12 @@
   print_last_error()
   {
     LPVOID lpMsgBuf = NULL;
-    FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM 
| FORMAT_MESSAGE_IGNORE_INSERTS,
-                    NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL);
-    fprintf (stderr, "%s\n", (char *)lpMsgBuf) ;
-    //FIXME : it crashes
-    // if (lpMsgBuf)
-    //   free (lpMsgBuf);
+
+    if (FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | 
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
+                    NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL))
+      fprintf (stderr, "%s\n", (char *)lpMsgBuf);
+    else
+      fprintf (stderr, "Failed to format the message for the last error! Error 
number : %d\n", GetLastError());
   }
 
   /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]