Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve compilation time by epsilon by sharpening the includes (str.h loads dynar...
[simgrid.git] / src / xbt / log.c
index d158ee5..e80361a 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "xbt/misc.h"
 #include "xbt/ex.h"
+#include "xbt/str.h"
 #include "xbt/sysdep.h"
 #include "xbt/log_private.h"
 #include "xbt/dynar.h"
@@ -662,7 +663,7 @@ static void _xbt_log_cat_apply_set(xbt_log_category_t category,
  */
 int _xbt_log_cat_init(xbt_log_category_t category,
                      e_xbt_log_priority_t priority) {
-  int cursor;
+  unsigned int cursor;
   xbt_log_setting_t setting=NULL;
   int found = 0;
   s_xbt_log_event_t _log_ev;
@@ -956,7 +957,7 @@ void xbt_log_control_set(const char* control_string) {
   /* To split the string in commands, and the cursors */
   xbt_dynar_t set_strings;
   char *str;
-  int cpt;
+  unsigned int cpt;
 
   if (!control_string)
     return;