From: Martin Quinson Date: Thu, 23 Feb 2017 08:17:16 +0000 (+0100) Subject: cosmetics to please sonar X-Git-Tag: v3_15~310 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f53fcc2ecd83775363e947cd7b7e4f014e87c31d cosmetics to please sonar --- diff --git a/teshsuite/smpi/macro-shared/macro-shared.c b/teshsuite/smpi/macro-shared/macro-shared.c index a9f1e5642f..5c3ee9fe5d 100644 --- a/teshsuite/smpi/macro-shared/macro-shared.c +++ b/teshsuite/smpi/macro-shared/macro-shared.c @@ -15,12 +15,11 @@ static void* hash(char *str, uint64_t* ans) { char *tohash = str; *ans=5381; - int c; printf("hashing !\n"); - c = *tohash++; - while (c!=0){ + int c = *(tohash++); + while (c != 0) { *ans = ((*ans << 5) + *ans) + c; /* hash * 33 + c */ - c = *tohash++; + c = *(tohash++); } return NULL; }