[Pdns-dev] Pdns-dev Digest, Vol 121, Issue 4

a b tripivceta at hotmail.com
Wed Feb 19 17:55:03 CET 2014


> I think both variants (the original as well as your "correction") are not
> really correct. According to the man-page for the libraryfunction time()
> returns something from type time_t, so the variable to which this return-
> value is assigned, should have type time_t. And if you want to build the
> difference from 2 time-stamps returned by different calls to time(), you
> should use the function difftime, which returns the difference in seconds
> as a double value. I think, all other possibilities would be system-dependent
> and *not* really portable.

Just as suspected. Thank You kindly for Your feedback, I will see aboutincorporating Your suggestion into the patch. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20140219/88b4fdb9/attachment.html>


More information about the Pdns-dev mailing list