removed redundant cls(data)
authorSree Harsha Totakura <totakura@in.tum.de>
Sun, 29 Jul 2012 21:32:40 +0000 (21:32 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Sun, 29 Jul 2012 21:32:40 +0000 (21:32 +0000)
src/testbed/test_testbed_api_operations.c
src/testbed/testbed_api_operations.c
src/testbed/testbed_api_operations.h

index 312c49c8404239511a5c3cca157268ed64e460d3..e14cb36b0ddd65e65a6125994c61907d490178dd 100644 (file)
@@ -193,14 +193,13 @@ run (void *cls, char *const *args, const char *cfgfile,
   op1 = GNUNET_TESTBED_operation_create_ (&op1,
                                           start_cb,
                                           release_cb,
-                                          OP_PEER_CREATE, /* irrelavant here */
-                                          NULL);
+                                          OP_PEER_CREATE);
+                                          
   GNUNET_assert (NULL != op1);
   op2 = GNUNET_TESTBED_operation_create_ (&op2,
                                           start_cb,
                                           release_cb,
-                                          OP_PEER_CREATE, /* irrelavant here */
-                                          NULL);
+                                          OP_PEER_CREATE);
   GNUNET_TESTBED_operation_queue_insert_ (q1, op1);
   GNUNET_TESTBED_operation_queue_insert_ (q2, op1);
   GNUNET_TESTBED_operation_queue_insert_ (q1, op2);
index 1692171e3da4f0e631c24342a3099b6e4ff6b40c..72cb8465eb6c696390c0064dd83c83bf28218dc9 100644 (file)
@@ -115,11 +115,6 @@ struct GNUNET_TESTBED_Operation
    */
   struct OperationQueue **queues;
 
-  /**
-   * Pointer to operation's data
-   */
-  void *data;
-  
   /**
    * The Operation ID
    */
@@ -199,15 +194,13 @@ check_readiness (struct GNUNET_TESTBED_Operation *op)
  * @param start function to call to start the operation
  * @param release function to call to close down the operation
  * @param type the type of the operation
- * @param data operation's relavant data
  * @return handle to the operation
  */
 struct GNUNET_TESTBED_Operation *
 GNUNET_TESTBED_operation_create_ (void *cls,
                                  OperationStart start,
                                  OperationRelease release,
-                                 enum OperationType type, 
-                                  void *data)
+                                 enum OperationType type)
 {
   struct GNUNET_TESTBED_Operation *op;
 
@@ -216,7 +209,6 @@ GNUNET_TESTBED_operation_create_ (void *cls,
   op->release = release;
   op->cb_cls = cls;
   op->type = type;
-  op->data = data;
   return op;  
 }
 
index a02f397acc29c3017e90c1417b1ec4051a503ae9..92f5644c90c0ae70dde2074c58995ab9eafd68f7 100644 (file)
@@ -168,8 +168,7 @@ struct GNUNET_TESTBED_Operation *
 GNUNET_TESTBED_operation_create_ (void *cls,
                                  OperationStart start,
                                  OperationRelease release,
-                                 enum OperationType type, 
-                                  void *data);
+                                 enum OperationType type);
 
 
 /**