From: Matthias Wachs Date: Tue, 21 Feb 2012 11:13:11 +0000 (+0000) Subject: - some func X-Git-Tag: initial-import-from-subversion-38251~14778 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3438deb5184ea9530e9469fe389ee453cd796fbc;p=oweals%2Fgnunet.git - some func --- diff --git a/src/namestore/test_namestore_api.c b/src/namestore/test_namestore_api.c index c15a4e7d1..16074c7cf 100644 --- a/src/namestore/test_namestore_api.c +++ b/src/namestore/test_namestore_api.c @@ -27,13 +27,17 @@ #define VERBOSE GNUNET_EXTRA_LOGGING +static struct GNUNET_NAMESTORE_Handle * nsh; + static int res; static void run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) { - + nsh = GNUNET_NAMESTORE_connect (cfg); + GNUNET_break (NULL != nsh); + GNUNET_NAMESTORE_disconnect (nsh, GNUNET_YES); res = 0; }