LRN's patch argument order
[oweals/gnunet.git] / src / util / test_plugin.c
index dc34841f5567de435f6bc78c5685a8312807b052..4635e13576a008b21fd2f364cc8478c13a9eddfc 100644 (file)
 #define VERBOSE GNUNET_EXTRA_LOGGING
 
 static void
-test_cb (void *cls,
-        const char *libname,
-        void *lib_ret)
+test_cb (void *cls, const char *libname, void *lib_ret)
 {
+  void *ret;
+
   GNUNET_assert (0 == strcmp (cls, "test"));
   GNUNET_assert (0 == strcmp (lib_ret, "Hello"));
-  GNUNET_assert (0 == strcmp (GNUNET_PLUGIN_unload (libname, "out"), "World"));
+  ret = GNUNET_PLUGIN_unload (libname, "out");
+  GNUNET_assert (NULL != ret);
+  GNUNET_assert (0 == strcmp (ret, "World"));
 }
-        
+
 
 static int
 check ()