fix
[oweals/gnunet.git] / src / hostlist / hostlist-client.c
index 503adb8a013f6286d8b2ba56482494a88a3f7c97..d2fa654339cfc43653f5d91c75309128d6eb7a00 100644 (file)
@@ -335,7 +335,7 @@ callback_download (void *ptr,
                                    1, 
                                    GNUNET_NO);
          stat_hellos_obtained++;
-         GNUNET_TRANSPORT_offer_hello (transport, msg);
+         GNUNET_TRANSPORT_offer_hello (transport, msg, NULL, NULL);
        }
       else
        {
@@ -1168,9 +1168,9 @@ handler_disconnect (void *cls,
   GNUNET_assert (stat_connection_count > 0);
   stat_connection_count--;
   GNUNET_STATISTICS_update (stats,
-                                                       gettext_noop ("# active connections"),
-                                                       -1,
-                                                       GNUNET_NO);
+                           gettext_noop ("# active connections"),
+                           -1,
+                           GNUNET_NO);
 }
 
 /**
@@ -1417,8 +1417,8 @@ static void save_hostlist_file ( int shutdown )
                   "HOSTLISTFILE", "HOSTLIST");
       return;
     }
-  if (GNUNET_SYSERR != GNUNET_DISK_directory_create_for_file (filename))
-  {
+  if (GNUNET_SYSERR == GNUNET_DISK_directory_create_for_file (filename))
+    return;
   wh = GNUNET_BIO_write_open (filename);
   if ( NULL == wh)
     {
@@ -1432,7 +1432,6 @@ static void save_hostlist_file ( int shutdown )
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
               _("Writing %u hostlist URIs to `%s'\n" ),
               linked_list_size, filename);
-  }
   /* add code to write hostlists to file using bio */
   ok = GNUNET_YES;
   counter = 0;