Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce the visibility of stdio.h because it was loaded wrongly (ie, before _GNU_SOURC...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 23 Mar 2007 22:20:52 +0000 (22:20 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 23 Mar 2007 22:20:52 +0000 (22:20 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3356 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/p2p/can/can.c
examples/gras/p2p/chord/chord.c
examples/msg/msg_test.c
examples/msg/msg_test_surfxml_bypassed.c
examples/msg/msg_test_suspend.c
examples/msg/ping_pong.c

index 1d37042..2cc62c0 100644 (file)
@@ -2,7 +2,7 @@
 // Peer-To-Peer CAN simulator 050406 by Dytto ESIAL //
 //////////////////////////////////////////////////////
 
-
+#include <stdio.h>
 #include "xbt/sysdep.h"
 #include "gras.h"
 
index 7d831ae..314d6ce 100644 (file)
@@ -2,6 +2,7 @@
  * vim:ts=2:sw=2:expandtab
  */
 
+#include <stdio.h>
 #include "xbt/sysdep.h"
 #include "gras.h"
 
index 9c94159..d5a4fd5 100644 (file)
@@ -5,6 +5,7 @@
 /* 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 <stdio.h>
 #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */
 #include "xbt/sysdep.h" /* calloc, printf */
 
index c5c81f7..4882aa2 100644 (file)
@@ -5,6 +5,7 @@
 /* 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 <stdio.h>
 #include "msg/msg.h"  /* Yeah! If you want to use msg, you need to include msg/msg.h */
 #include "surf/surfxml_parse.h" /* to override surf_parse */
 #include "surf/surfxml.h"       /* to hijack surf_parse_lex */
index 072d492..8bcba55 100644 (file)
@@ -6,7 +6,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */
-#include "xbt/sysdep.h" /* calloc, printf */
+#include "xbt/sysdep.h" /* calloc */
 
 /* Create a log channel to have nice outputs. */
 #include "xbt/log.h"
@@ -72,8 +72,8 @@ int main(int argc, char *argv[])
 
   MSG_global_init(&argc,argv);
   if (argc < 3) {
-     printf ("Usage: %s platform_file deployment_file\n",argv[0]);
-     printf ("example: %s msg_platform.xml msg_deployment_suspend.xml\n",argv[0]);
+     CRITICAL1 ("Usage: %s platform_file deployment_file\n",argv[0]);
+     CRITICAL1 ("example: %s msg_platform.xml msg_deployment_suspend.xml\n",argv[0]);
      exit(1);
   }
   test_all(argv[1],argv[2]);
index ef92c54..a89b363 100644 (file)
@@ -6,7 +6,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */
-#include "xbt/sysdep.h" /* calloc, printf */
+#include "xbt/sysdep.h" /* calloc */
 
 
 /* Create a log channel to have nice outputs. */
@@ -151,8 +151,8 @@ int main(int argc, char *argv[])
   MSG_global_init(&argc,argv);
   if (argc < 3) 
 {
-     printf ("Usage: %s platform_file deployment_file\n",argv[0]);
-     printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
+     CRITICAL1 ("Usage: %s platform_file deployment_file\n",argv[0]);
+     CRITICAL1 ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
      exit(1);
   }
   res = test_all(argv[1],argv[2]);