Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 17 Dec 2004 23:43:04 +0000 (23:43 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 17 Dec 2004 23:43:04 +0000 (23:43 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@684 48e7efb5-ca39-0410-a469-dd3cf9ba447f

testsuite/surf/surf_usage2.c

index 55994dc..66c09fe 100644 (file)
@@ -86,15 +86,15 @@ void test(void)
 
     xbt_dynar_foreach(resource_list, i, resource) {
       printf("\t %s actions\n", resource->common_public->name);
 
     xbt_dynar_foreach(resource_list, i, resource) {
       printf("\t %s actions\n", resource->common_public->name);
-      while (action =
+      while ((action =
             xbt_swag_extract(resource->common_public->states.
             xbt_swag_extract(resource->common_public->states.
-                             failed_action_set)) {
+                             failed_action_set))) {
        printf("\t * Failed : %p\n", action);
        resource->common_public->action_free(action);
       }
        printf("\t * Failed : %p\n", action);
        resource->common_public->action_free(action);
       }
-      while (action =
+      while ((action =
             xbt_swag_extract(resource->common_public->states.
             xbt_swag_extract(resource->common_public->states.
-                             done_action_set)) {
+                             done_action_set))) {
        printf("\t * Done : %p\n", action);
        resource->common_public->action_free(action);
       }
        printf("\t * Done : %p\n", action);
        resource->common_public->action_free(action);
       }