summaryrefslogtreecommitdiff
path: root/source3/smbd/blocking.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-08-13 19:19:07 +0200
committerStefan Metzmacher <metze@samba.org>2019-09-09 14:23:39 +0000
commit3b788d97f9995e24e4005567f90a925957fb1e00 (patch)
tree48a5f05d16dfb7f1ffd211974ffcff633012e300 /source3/smbd/blocking.c
parentbd8884e5722cbbb7783fb4ae53e4f35b31031b01 (diff)
downloadsamba-3b788d97f9995e24e4005567f90a925957fb1e00.tar.gz
s3:blocking: remove unused timeval_brl_min()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd/blocking.c')
-rw-r--r--source3/smbd/blocking.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c
index ca8a625ba9d..cdc4613270e 100644
--- a/source3/smbd/blocking.c
+++ b/source3/smbd/blocking.c
@@ -28,22 +28,6 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_LOCKING
-/****************************************************************************
- We need a version of timeval_min that treats zero timval as infinite.
-****************************************************************************/
-
-struct timeval timeval_brl_min(const struct timeval *tv1,
- const struct timeval *tv2)
-{
- if (timeval_is_zero(tv1)) {
- return *tv2;
- }
- if (timeval_is_zero(tv2)) {
- return *tv1;
- }
- return timeval_min(tv1, tv2);
-}
-
NTSTATUS smbd_do_locks_try(
struct files_struct *fsp,
enum brl_flavour lock_flav,