]> www.ginac.de Git - cln.git/blobdiff - tests/timeprint-compare.cc
Fix sparc64 build with -DNO_ASM and reduce compiler warnings.
[cln.git] / tests / timeprint-compare.cc
index 7ef4441c12a4102e95041c03367b966060ff9059..0e4b235d272cad527542d7610623e1283b8d53f5 100644 (file)
@@ -2,12 +2,11 @@
 #include <cln/io.h>
 #include <cln/integer.h>
 #include <cln/random.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
 #include <cln/timing.h>
 #include <cl_print.h>
 #include <cln/malloc.h>
-#include <cln/abort.h>
 
 int main (int argc, char * argv[])
 {
@@ -26,7 +25,7 @@ int main (int argc, char * argv[])
        {
                char* p = (cl_digits_algo = 0, cl_decimal_string(a));
                char* q = (cl_digits_algo = 1, cl_decimal_string(a));
-               if (strcmp(p,q)) cl_abort();
+               if (strcmp(p,q)) abort();
                free_hook(p);
                free_hook(q);
        }