Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ensure that the create_resource functions do call strdup by themselves
[simgrid.git] / src / surf / network_im.c
index 668c2f2..7a4887c 100644 (file)
@@ -150,7 +150,7 @@ static double (*im_bandwidth_constraint_callback) (double, double, double) =
     &im_constant_bandwidth_constraint;
 
 
-static void* im_net_create_resource(char *name,
+static void* im_net_create_resource(const char *name,
                                 double bw_initial,
                                 tmgr_trace_t bw_trace,
                                 double lat_initial,