From f53fcc2ecd83775363e947cd7b7e4f014e87c31d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 23 Feb 2017 09:17:16 +0100 Subject: [PATCH] cosmetics to please sonar --- teshsuite/smpi/macro-shared/macro-shared.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.20.1