- htons => htonl
[oweals/gnunet.git] / src / namestore / gnunet-namestore.c
index e985e1b049d8b2c5356d0faacff0b3d1efcdece9..ec6ccbfbedcfab86fad97d599179a0855bb6af4d 100644 (file)
@@ -384,7 +384,9 @@ display_record (void *cls,
           rname);
   for (i=0;i<rd_len;i++)
   {
-    if (GNUNET_GNSRECORD_TYPE_NICK == rd[i].record_type)
+    if ( (GNUNET_GNSRECORD_TYPE_NICK == rd[i].record_type) &&
+         (0 != strcmp (rname,
+                       "+")) )
       continue;
     typestring = GNUNET_GNSRECORD_number_to_typename (rd[i].record_type);
     s = GNUNET_GNSRECORD_value_to_string (rd[i].record_type,
@@ -804,9 +806,9 @@ identity_cb (void *cls,
 
 static void
 default_ego_cb (void *cls,
-    struct GNUNET_IDENTITY_Ego *ego,
-    void **ctx,
-    const char *name)
+                struct GNUNET_IDENTITY_Ego *ego,
+                void **ctx,
+                const char *name)
 {
   get_default = NULL;
   if (NULL == ego)
@@ -823,17 +825,20 @@ default_ego_cb (void *cls,
   }
 }
 
+
 static void
 id_connect_cb (void *cls,
-    struct GNUNET_IDENTITY_Ego *ego,
-    void **ctx,
-    const char *name)
+               struct GNUNET_IDENTITY_Ego *ego,
+               void **ctx,
+               const char *name)
 {
   const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
+
   if (NULL == ego)
   {
-    get_default = GNUNET_IDENTITY_get (idh, "namestore",
-        &default_ego_cb, (void *) cfg);
+    get_default = GNUNET_IDENTITY_get (idh,
+                                       "namestore",
+                                       &default_ego_cb, (void *) cfg);
   }
 }