add logic to handle SRV/DANE names (#3003 and 2526) in GNS resolver
[oweals/gnunet.git] / src / gns / w32nsp-uninstall.c
index ac5aafe2d52b63a22ede515b9f4531fa45e2db96..6b123cc388f83af668a326d6424f4cf8053b1472 100644 (file)
@@ -1,7 +1,7 @@
 #define INITGUID
+#include <ws2spi.h>
 #include <windows.h>
 #include <nspapi.h>
-#include <ws2spi.h>
 #include "gnunet_w32nsp_lib.h"
 #include <stdio.h>
 
@@ -12,19 +12,20 @@ main (int argc, char **argv)
   GUID id = GNUNET_NAMESPACE_PROVIDER_DNS;
   WSADATA wsd;
 
-  if (WSAStartup(MAKEWORD(2,2), &wsd) != 0)
+  if (WSAStartup (MAKEWORD (2,2), &wsd) != 0)
   {
-    fprintf (stderr, "WSAStartup() failed: %lu\n", GetLastError());
+    fprintf (stderr, "WSAStartup () failed: %lu\n", GetLastError ());
     return 5;
   }
 
   ret = WSCUnInstallNameSpace (&id);
   if (ret == NO_ERROR)
   {
+    fprintf (stderr, "Uninstalled GNUnet DNS provider\n");
     WSACleanup ();
     return 0;
   }
-  fprintf (stderr, "WSCUnInstallNameSpace() failed: %lu\n", GetLastError ());
+  fprintf (stderr, "WSCUnInstallNameSpace () failed: %lu\n", GetLastError ());
   WSACleanup ();
   return 1;
 }
\ No newline at end of file