Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
checking if a unsigned int is >0 is a bad idea
[simgrid.git] / examples / simdag / goal / goal_test.c
index 368f551..a44b6ec 100644 (file)
 XBT_LOG_NEW_DEFAULT_CATEGORY(goal, "The GOAL loader into SimDag");
 
 typedef struct {
-  int i, j, k;
-} s_bcast_task_t,*bcast_task_t;
-
+  int i;
+  int j;
+  int k;
+} s_bcast_task_t;
+typedef s_bcast_task_t *bcast_task_t;
 const sg_host_t* ws_list;
 int count = 0;
 
 xbt_dynar_t reclaimed;
 
 static void send_one(int from, int to) {
-  //XBT_DEBUG("send_one(%d, %d)",from,to);
 
   if (count %100000 == 0)
     XBT_INFO("Sending task #%d",count);