From: suter Date: Fri, 30 May 2014 21:44:53 +0000 (+0200) Subject: change key name to prevent reuse + indent (this example raised an issue X-Git-Tag: v3_11~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/14ccdee10b09e9b80221e526f7c2ac3bf13b6a2f?hp=9b3bbb346c28484b2d336adc7b2415e75259a5d4 change key name to prevent reuse + indent (this example raised an issue with the parsing of ) --- diff --git a/teshsuite/msg/storage/storage_basic.c b/teshsuite/msg/storage/storage_basic.c index 4114570112..b56ea02179 100644 --- a/teshsuite/msg/storage/storage_basic.c +++ b/teshsuite/msg/storage/storage_basic.c @@ -141,14 +141,14 @@ void get_set_storage_data(const char *storage_name){ } void dump_platform_storages(void){ - unsigned int cursor; - xbt_dynar_t storages = MSG_storages_as_dynar(); - msg_storage_t storage; - xbt_dynar_foreach(storages, cursor, storage){ - XBT_INFO("Storage %s is attached to %s", MSG_storage_get_name(storage), MSG_storage_get_host(storage)); - MSG_storage_set_property_value(storage, "usage", xbt_strdup("gpfs"), NULL); - } - xbt_dynar_free(&storages); + unsigned int cursor; + xbt_dynar_t storages = MSG_storages_as_dynar(); + msg_storage_t storage; + xbt_dynar_foreach(storages, cursor, storage){ + XBT_INFO("Storage %s is attached to %s", MSG_storage_get_name(storage), MSG_storage_get_host(storage)); + MSG_storage_set_property_value(storage, "other usage", xbt_strdup("gpfs"), xbt_free); + } + xbt_dynar_free(&storages); } int client(int argc, char *argv[]) @@ -189,7 +189,7 @@ int server(int argc, char *argv[]) char *dest = MSG_task_get_data(to_execute); sg_size_t size_to_write = (sg_size_t)MSG_task_get_data_size(to_execute); write_local_file(dest, size_to_write); - } + } MSG_task_destroy(to_execute); to_execute = NULL;