Hi,

See attached patch to fix a small issue with win32 build of benchmark.c


Regards,

Henrik Andersson
diff -up libtasn1-4.9/src/benchmark.c.fix_fprintf_format libtasn1-4.9/src/benchmark.c
--- libtasn1-4.9/src/benchmark.c.fix_fprintf_format	2016-11-10 06:23:03.164618458 +0100
+++ libtasn1-4.9/src/benchmark.c	2016-11-10 06:23:58.263009431 +0100
@@ -94,20 +94,20 @@
   st->wtimer = CreateWaitableTimer (NULL, TRUE, NULL);
   if (st->wtimer == NULL)
     {
-      fprintf (stderr, "error: CreateWaitableTimer %u\n", GetLastError ());
+      fprintf (stderr, "error: CreateWaitableTimer %lu\n", GetLastError ());
       exit (1);
     }
   st->wthread = CreateThread (NULL, 0, alarm_handler, &st->wtimer, 0, NULL);
   if (st->wthread == NULL)
     {
-      fprintf (stderr, "error: CreateThread %u\n", GetLastError ());
+      fprintf (stderr, "error: CreateThread %lu\n", GetLastError ());
       exit (1);
     }
   st->alarm_timeout.QuadPart = (5) * 10000000;
   if (SetWaitableTimer (st->wtimer, &st->alarm_timeout, 0, NULL, NULL, FALSE)
       == 0)
     {
-      fprintf (stderr, "error: SetWaitableTimer %u\n", GetLastError ());
+      fprintf (stderr, "error: SetWaitableTimer %lu\n", GetLastError ());
       exit (1);
     }
 #else

Reply via email to