X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2703e1ee2a79e9fc7c86ebb122caa515ecf24d14..8b31411ad567a87b51085f1514b1ecaca54c47b6:/src/instr/jedule/jedule_platform.c diff --git a/src/instr/jedule/jedule_platform.c b/src/instr/jedule/jedule_platform.c index 29eda01236..38a3ef4251 100644 --- a/src/instr/jedule/jedule_platform.c +++ b/src/instr/jedule/jedule_platform.c @@ -1,9 +1,8 @@ -/* - * jed_simgrid_platform.c - * - * Created on: Nov 30, 2010 - * Author: sascha - */ +/* Copyright (c) 2010-2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #include #include @@ -61,7 +60,9 @@ static void jed_free_container(jed_simgrid_container_t container) { xbt_free(container); } -void jed_simgrid_create_container(jed_simgrid_container_t *container, char *name) { +void jed_simgrid_create_container(jed_simgrid_container_t *container, + const char *name) +{ xbt_assert( name != NULL ); *container = xbt_new0(s_jed_simgrid_container_t,1); @@ -92,7 +93,7 @@ void jed_simgrid_add_resources(jed_simgrid_container_t parent, parent->is_lowest = 1; xbt_dynar_free(&parent->container_children); parent->container_children = NULL; - parent->name2id = xbt_dict_new_homogeneous(xbt_free); + parent->name2id = xbt_dict_new_homogeneous(xbt_free_f); parent->last_id = 0; parent->resource_list = xbt_dynar_new(sizeof(char *), NULL); @@ -257,7 +258,7 @@ void jedule_add_meta_info(jedule_t jedule, char *key, char *value) { xbt_assert(key != NULL); xbt_assert(value != NULL); - val_cp = strdup(value); + val_cp = xbt_strdup(value); xbt_dict_set(jedule->jedule_meta_info, key, val_cp, NULL); }