> 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 Pdns-dev@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-dev