[xmlsec] Re: patch for xmlsec1

Aleksey Sanin aleksey at aleksey.com
Tue Aug 26 09:18:51 PDT 2008


Checked in. thanks!

Sending        ChangeLog
Sending        apps/xmlsec.c
Transmitting file data ..
Committed revision 1002.

Aleksey

Mikhail T. wrote:
> Gentlemen!
> 
> On FreeBSD, at least, the CLOCKS_PER_SEC is defined as 128.
> Integer-divided by 1000 this means a sure zero, which brings up a
> compiler warning -- a good thing.
> 
> The patch fixes the problem while maintaining compatibility for all.
> 
> Johan, can I add this patch to your port (bumping PORTREVISION), until
> Alexey releases a new version?
> 
> Thanks!
> 
> 	-mi
> 
> --- apps/xmlsec.c	2007-11-07 01:44:00.000000000 -0500
> +++ apps/xmlsec.c	2008-08-26 11:48:12.000000000 -0400
> @@ -1203,5 +1203,5 @@
>         
>  	repeats = xmlSecAppCmdLineParamGetInt(&repeatParam, 1);
> -        fprintf(stderr, "Executed %d tests in %ld msec\n", repeats, total_time / (CLOCKS_PER_SEC / 1000));    
> +        fprintf(stderr, "Executed %d tests in %ld msec\n", repeats, total_time*1000/CLOCKS_PER_SEC);    
>      }
>  



More information about the xmlsec mailing list