Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This, modify the declaration of type of function pointer. It also clear the warnings...
[simgrid.git] / src / gras / gras.c
index 98c538a..63f1d6c 100644 (file)
@@ -25,7 +25,7 @@
 #include "gras/Msg/msg_private.h"
 #include "portable.h" /* hexa_*(); signalling stuff */
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(gras,XBT_LOG_ROOT_CAT,"All GRAS categories (cf. section \ref GRAS_API)");
+XBT_LOG_NEW_DEFAULT_CATEGORY(gras,"All GRAS categories (cf. section \ref GRAS_API)");
 static int gras_running_process = 0;
 #if defined(HAVE_SIGNAL) && defined(HAVE_SIGNAL_H)
 static void gras_sigusr_handler(int sig) {
@@ -52,7 +52,7 @@ void gras_init(int *argc,char **argv) {
        gras_msg_procdata_t msg_pd;
   VERB0("Initialize GRAS");
 
-  xbt_getpid = &gras_os_getpid;
+  xbt_getpid = gras_os_getpid;
   /* First initialize the XBT */
   xbt_init(argc,argv);