Re: Pdns-dev Digest, Vol 121, Issue 4

a b <[email protected]>
Newsgroups gmane.network.dns.powerdns.devel
Message-ID <[email protected]>
> 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.

_______________________________________________
Pdns-dev mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.