The branch, master has been updated
       via  7a6c979299ce5e0bea45ba7f2fe92443ac5a0735 (commit)
      from  28409026928a6051f0d0c58da66f6904b98962fd (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7a6c979299ce5e0bea45ba7f2fe92443ac5a0735
Author: Jeremy Allison <[email protected]>
Date:   Mon Aug 24 15:09:29 2009 -0700

    Use existing time_t rounding function, don't invent my own.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/time.c b/source3/lib/time.c
index c80b59a..a9f7899 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -474,7 +474,7 @@ int timespec_compare(const struct timespec *ts1, const 
struct timespec *ts2)
 
 void round_timespec(struct timespec *ts)
 {
-       ts->tv_sec += ts->tv_nsec >= 500000000 ? 1 : 0;
+       ts->tv_sec = convert_timespec_to_time_t(*ts);
        ts->tv_nsec = 0;
 }
 


-- 
Samba Shared Repository

Reply via email to