X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_looplen.c;h=d969ffcc00b2d58c0add83a53df2c31148d3aefd;hp=c8b5a0256abebc7f14b546040ba2d7259eda6a4f;hb=014775106c60f02818ca755b331f887030bd440f;hpb=3fa182868e25068413fdaa1bef290365e99ab246 diff --git a/tests/benchmark/test_looplen.c b/tests/benchmark/test_looplen.c index c8b5a02..d969ffc 100644 --- a/tests/benchmark/test_looplen.c +++ b/tests/benchmark/test_looplen.c @@ -20,7 +20,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #include #include #include @@ -29,11 +28,11 @@ #include #include #include -#include #include #include #include +#include #ifndef DYNAMIC_LINK_TEST #define _LGPL_SOURCE @@ -51,7 +50,7 @@ static inline void loop_sleep(unsigned long loops) #define LOOPS 1048576 #define TESTS 10 -int main(int argc, char **argv) +int main(void) { unsigned long i; caa_cycles_t time1, time2; @@ -68,7 +67,7 @@ int main(int argc, char **argv) printf("CALIBRATION : %g cycles per loop\n", cpl); printf("time_tot = %llu, LOOPS = %d, TESTS = %d\n", - time_tot, LOOPS, TESTS); + (unsigned long long) time_tot, LOOPS, TESTS); return 0; }