lib/util/time.c: timeval_current_ofs_msec
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Jun 2011 01:51:15 +0000 (11:21 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Jun 2011 08:38:47 +0000 (10:38 +0200)
commit56e72337b01216dc7cba418f040a5cc928e5fc6f
tree7d64feee26bfeede2ab07ea6045ac11ebb4ea3c2
parent9bd695c83f43cacfc08566f3c18db44b61f7ed75
lib/util/time.c: timeval_current_ofs_msec

Several places want "milliseconds from current time", and several were
simply doing "msec * 1000" which can (and does in one place) result in
a usec value over 1 a million.

Using a helper to do this is safer and more readable.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/util/time.c
lib/util/time.h
source3/libsmb/async_smb.c
source3/nmbd/nmbd_processlogon.c
source3/rpc_client/rpc_transport_tstream.c
source3/smbd/blocking.c
source3/smbd/smb2_lock.c
source4/ntvfs/posix/pvfs_lock.c