fixes
authorChristian Grothoff <christian@grothoff.org>
Tue, 2 Feb 2010 13:15:00 +0000 (13:15 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 2 Feb 2010 13:15:00 +0000 (13:15 +0000)
src/fs/fs_publish.c
src/fs/fs_unindex.c
src/fs/gnunet-service-fs_indexing.c

index 02ddb2a0de56faf1f41788ac10602ca7b1489089..cbdb9193bbe0c5a683962f1272ad0311ee461f1d 100644 (file)
@@ -792,12 +792,13 @@ hash_for_index_cb (void *cls,
          p->data.file.filename,
          slen);
   sc->client = client;
-  GNUNET_CLIENT_transmit_and_get_response (client,
-                                          &ism->header,
-                                          GNUNET_TIME_UNIT_FOREVER_REL,
-                                          GNUNET_YES,
-                                          &process_index_start_response,
-                                          sc);
+  GNUNET_break (GNUNET_YES ==
+               GNUNET_CLIENT_transmit_and_get_response (client,
+                                                        &ism->header,
+                                                        GNUNET_TIME_UNIT_FOREVER_REL,
+                                                        GNUNET_YES,
+                                                        &process_index_start_response,
+                                                        sc));
   GNUNET_free (ism);
 }
 
index 243209b0e607e534a3b5c92390a035212838176c..7ce8b3f18c23724db7e277ce9ab4d7c63380cffd 100644 (file)
@@ -373,12 +373,13 @@ process_hash (void *cls,
   req.header.type = htons (GNUNET_MESSAGE_TYPE_FS_UNINDEX);
   req.reserved = 0;
   req.file_id = *file_id;
-  GNUNET_CLIENT_transmit_and_get_response (uc->client,
-                                          &req.header,
-                                          GNUNET_CONSTANTS_SERVICE_TIMEOUT,
-                                          GNUNET_YES,
-                                          &process_fs_response,
-                                          uc);
+  GNUNET_break (GNUNET_OK == 
+               GNUNET_CLIENT_transmit_and_get_response (uc->client,
+                                                        &req.header,
+                                                        GNUNET_CONSTANTS_SERVICE_TIMEOUT,
+                                                        GNUNET_YES,
+                                                        &process_fs_response,
+                                                        uc));
 }
 
 
index 72203fa7a5a3fa845cb0d70aad04c96c810b1eba..de569f7cae5f6e65c12e0c0e4c23e61c5bae5a72 100644 (file)
@@ -354,6 +354,8 @@ GNUNET_FS_handle_index_start (void *cls,
   memcpy (&ii[1], fn, slen);
   ii->file_id = ism->file_id;  
   ii->tc = GNUNET_SERVER_transmit_context_create (client);
+  mydev = 0;
+  myino = 0;
   if ( ( (dev != 0) ||
         (ino != 0) ) &&
        (GNUNET_OK == GNUNET_DISK_file_get_identifiers (fn,