mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
bd8884e572
commit
3b788d97f9
@ -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,
|
||||
|
@ -95,8 +95,6 @@ bool aio_add_req_to_fsp(files_struct *fsp, struct tevent_req *req);
|
||||
|
||||
/* The following definitions come from smbd/blocking.c */
|
||||
|
||||
struct timeval timeval_brl_min(const struct timeval *tv1,
|
||||
const struct timeval *tv2);
|
||||
NTSTATUS smbd_do_locks_try(
|
||||
struct files_struct *fsp,
|
||||
enum brl_flavour lock_flav,
|
||||
|
Loading…
Reference in New Issue
Block a user