Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce the amount of implicit include directories
[simgrid.git] / src / simdag / instr_sd_task.c
index 409b3d9..1194aae 100644 (file)
@@ -1,14 +1,12 @@
-/* Copyright (c) 2013. The SimGrid Team.
+/* Copyright (c) 2013-2015. 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 "instr/instr_private.h"
+#include "src/instr/instr_private.h"
 #include "private.h"
-#include "simdag/datatypes.h"
-
-#ifdef HAVE_TRACING
+#include "simgrid/simdag.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_sd, instr, "SD");
 
@@ -23,8 +21,7 @@ void TRACE_sd_set_task_category(SD_task_t task, const char *category){
   }
 
   //set task category
-  if (task->category)
-    xbt_free(task->category);
+  xbt_free(task->category);
   task->category = xbt_strdup (category);
   XBT_DEBUG("SD task %p(%s), category %s", task, task->name, task->category);
 }
@@ -79,4 +76,3 @@ void TRACE_sd_task_destroy(SD_task_t task)
   return;
 }
 
-#endif /* HAVE_TRACING */