From 7852214981e500cd0e89b5e2038e04da7e3b1377 Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Mon, 8 Oct 2012 15:36:45 +0200 Subject: [PATCH] fixes --- libsharp/sharp_bench2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsharp/sharp_bench2.c b/libsharp/sharp_bench2.c index af8a026..d637554 100644 --- a/libsharp/sharp_bench2.c +++ b/libsharp/sharp_bench2.c @@ -125,7 +125,7 @@ int main(int argc, char **argv) int master=(mytask==0); sharp_module_startup("sharp_bench2",argc,7, - " ",master); + " ",0); int lmax=atoi(argv[2]); sharp_jobtype jtype = (strcmp(argv[4],"a2m")==0) ? @@ -184,8 +184,7 @@ int main(int argc, char **argv) double time=1e20; unsigned long long opcnt=0; -int ntries; - for (ntries=0; (ntries<2)||(ntries*time<5); ++ntries) + for (int ntries=0; (ntries<2)||(ntries*time<5); ++ntries) { double ltime; unsigned long long lopcnt; @@ -195,7 +194,6 @@ int ntries; ltime=maxTime(ltime); if (ltime