X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b777cd7570d38c138ba99fc044fe55dc9a44b3aa..210773378309e0c5891ebe26177ec3d43f0ec283:/examples/gras/tokenS/tokenS.c diff --git a/examples/gras/tokenS/tokenS.c b/examples/gras/tokenS/tokenS.c index 8cf9cf1f8f..735c23674e 100644 --- a/examples/gras/tokenS/tokenS.c +++ b/examples/gras/tokenS/tokenS.c @@ -11,8 +11,7 @@ #include "gras.h" -//#define NBLOOPS 10 -#define NBLOOPS 1000 +#define NBLOOPS 100 XBT_LOG_NEW_DEFAULT_CATEGORY(Token,"Messages specific to this example"); @@ -110,6 +109,9 @@ int node (int argc,char *argv[]) { xbt_error_t errcode; node_data_t *globals; + const char *host; + int myport; + int peerport; /* 1. Init the GRAS infrastructure and declare my globals */ gras_init(&argc,argv); @@ -118,9 +120,9 @@ int node (int argc,char *argv[]) { /* 2. Get the successor's address. The command line overrides defaults when specified */ - const char *host = "127.0.0.1"; - int myport = 4000; - int peerport = 4000; + host = "127.0.0.1"; + myport = 4000; + peerport = 4000; if (argc >= 4) { myport=atoi(argv[1]); host=argv[2];