From: cherierm Date: Fri, 13 Apr 2007 09:31:44 +0000 (+0000) Subject: just a little mistake on this example X-Git-Tag: v3.3~1954 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8d81705e2089e379e105983e198341c83b081139 just a little mistake on this example git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3406 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/gras/mutual_exclusion/simple_token/simple_token.c b/examples/gras/mutual_exclusion/simple_token/simple_token.c index 2460b60c7c..7931730852 100644 --- a/examples/gras/mutual_exclusion/simple_token/simple_token.c +++ b/examples/gras/mutual_exclusion/simple_token/simple_token.c @@ -149,7 +149,7 @@ int node (int argc,char *argv[]) { /* 8. One node has to create the token at startup. It's specified by a command line argument */ - if (argc >= 5 && !strncmp("--create-token", argv[4],strlen(argv[4]))) + if (argc >= 5 && !strncmp("--create-token", argv[4],strlen("--create-token"))) globals->create=1; if (globals->create) {