Add a third default.
[oweals/gnunet.git] / src / util / plugin.c
index e15948b3c46f932aa011bed8e7ec56a6d6fefcfc..fe8281c32040b4a542e9c4eb10b78e726bb64dcd 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
@@ -26,9 +26,7 @@
 
 #include "platform.h"
 #include <ltdl.h>
-#include "gnunet_common.h"
-#include "gnunet_os_lib.h"
-#include "gnunet_plugin_lib.h"
+#include "gnunet_util_lib.h"
 
 #define LOG(kind,...) GNUNET_log_from (kind, "util", __VA_ARGS__)
 
@@ -272,12 +270,12 @@ GNUNET_PLUGIN_unload (const char *library_name, void *arg)
     plugins = pos->next;
   else
     prev->next = pos->next;
-  //lt_dlclose (pos->handle);
+  lt_dlclose (pos->handle);
   GNUNET_free (pos->name);
   GNUNET_free (pos);
   if (plugins == NULL)
   {
-    //plugin_fini ();
+    plugin_fini ();
     initialized = GNUNET_NO;
   }
   return ret;