diff options
author | Jeremy Allison <jra@samba.org> | 2006-04-15 04:07:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:22 -0500 |
commit | 8272a5ab0605fcf95527143c4f909aa1008e5b94 (patch) | |
tree | 35cc5a4d18f42122598b87afd5fe9e795808dae7 /source/smbd/process.c | |
parent | 77fb19c45dcb07f5b675831979fbd74a99e30638 (diff) | |
download | samba-8272a5ab0605fcf95527143c4f909aa1008e5b94.tar.gz samba-8272a5ab0605fcf95527143c4f909aa1008e5b94.tar.xz samba-8272a5ab0605fcf95527143c4f909aa1008e5b94.zip |
r15088: Remove all time() and gettimeofday() calls out of the mainline
packet processing code. Only do these when needed (ie. in the
idle timeout code). We drop an unneccessary global here too.
Jeremy.
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r-- | source/smbd/process.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c index ba14e57c54a..aaf98203a25 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -26,8 +26,6 @@ extern int keepalive; extern struct auth_context *negprot_global_auth_context; extern int smb_echo_count; -struct timeval smb_last_time; - static char *InBuffer = NULL; static char *OutBuffer = NULL; static char *current_inbuf = NULL; @@ -1011,8 +1009,6 @@ static int construct_reply(char *inbuf,char *outbuf,int size,int bufsize) int outsize = 0; int msg_type = CVAL(inbuf,0); - GetTimeOfDay(&smb_last_time); - chain_size = 0; file_chain_reset(); reset_chain_p(); |