X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c5bf8d0723c36491a1bf37a9f27858b43c4c6e2c..2df88396d94796a341f1dbaa1d41f3162745d927:/src/xbt/xbt_log_layout_format.cpp diff --git a/src/xbt/xbt_log_layout_format.cpp b/src/xbt/xbt_log_layout_format.cpp index 854968ec1b..daec92c181 100644 --- a/src/xbt/xbt_log_layout_format.cpp +++ b/src/xbt/xbt_log_layout_format.cpp @@ -179,12 +179,12 @@ static void xbt_log_layout_format_free(xbt_log_layout_t lay) xbt_free(lay->data); } -xbt_log_layout_t xbt_log_layout_format_new(char *arg) +xbt_log_layout_t xbt_log_layout_format_new(const char* arg) { xbt_log_layout_t res = xbt_new0(s_xbt_log_layout_t, 1); res->do_layout = &xbt_log_layout_format_doit; res->free_ = &xbt_log_layout_format_free; - res->data = xbt_strdup((char *) arg); + res->data = xbt_strdup(arg); return res; }