mirror of
https://github.com/samba-team/samba.git
synced 2025-11-20 08:23:50 +03:00
r5195: most events don't need the time of the event, so save a gettimeofday() call
and just use timeval_current() when its actually needed
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
26aa1aa693
commit
236403cc4d
@@ -328,8 +328,7 @@ NTSTATUS ldapsrv_flush_responses(struct ldapsrv_connection *conn)
|
||||
/*
|
||||
called when a LDAP socket becomes readable
|
||||
*/
|
||||
static void ldapsrv_recv(struct stream_connection *conn, struct timeval t,
|
||||
uint16_t flags)
|
||||
static void ldapsrv_recv(struct stream_connection *conn, uint16_t flags)
|
||||
{
|
||||
struct ldapsrv_connection *ldap_conn = talloc_get_type(conn->private, struct ldapsrv_connection);
|
||||
uint8_t *buf;
|
||||
@@ -424,8 +423,7 @@ static void ldapsrv_recv(struct stream_connection *conn, struct timeval t,
|
||||
/*
|
||||
called when a LDAP socket becomes writable
|
||||
*/
|
||||
static void ldapsrv_send(struct stream_connection *conn, struct timeval t,
|
||||
uint16_t flags)
|
||||
static void ldapsrv_send(struct stream_connection *conn, uint16_t flags)
|
||||
{
|
||||
struct ldapsrv_connection *ldap_conn = talloc_get_type(conn->private, struct ldapsrv_connection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user