X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0d43be87ddd67c84f4def31a55141bfd88239747..593ae86304a79fe1420cb52505733e079a119ed3:/src/xbt/log.c diff --git a/src/xbt/log.c b/src/xbt/log.c index 3cf1ceb5f0..4b72fff99e 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -13,6 +13,7 @@ #include /* snprintf */ #include /* snprintf */ #include "gras_config.h" /* to get a working stdarg.h */ +#include "portable.h" /* to get a working stdarg.h */ #include "xbt_modinter.h" @@ -547,7 +548,7 @@ static void _xbt_log_parse_setting(const char* control_string, xbt_assert1(*dot == '.' && *eq == '=', "Invalid control string '%s'",control_string); - if (!strncmp(dot + 1, "thresh", min(eq - dot - 1,strlen("thresh")))) { + if (!strncmp(dot + 1, "thresh", min((size_t)(eq - dot - 1),strlen("thresh")))) { int i; char *neweq=xbt_strdup(eq+1); char *p=neweq-1; @@ -566,7 +567,7 @@ static void _xbt_log_parse_setting(const char* control_string, } } if (ithresh=i; + set->thresh= (e_xbt_log_priority_t) i; } else { xbt_assert1(FALSE,"Unknown priority name: %s",eq+1); } @@ -673,7 +674,7 @@ void xbt_log_control_set(const char* control_string) { p=strrchr(cs,' '); if (p) { *p='\0'; - *p++; + p++; } else { p=cs; done = 1;