1
0
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:
Andrew Tridgell
2005-02-03 11:25:52 +00:00
committed by Gerald (Jerry) Carter
parent 26aa1aa693
commit 236403cc4d
16 changed files with 32 additions and 39 deletions

View File

@@ -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);