summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-25 22:57:51 +0000
committerJeremy Allison <jra@samba.org>2000-01-25 22:57:51 +0000
commitb5e7e4277d87c9eaa663f92c081a869b34170380 (patch)
tree65da8a8a5b4615cfd26e81696ef486fc1fb07d31 /source3/smbd
parent014bdf941f71447909d3d98974e543fbbebfd75e (diff)
downloadsamba-b5e7e4277d87c9eaa663f92c081a869b34170380.tar.gz
samba-b5e7e4277d87c9eaa663f92c081a869b34170380.tar.bz2
samba-b5e7e4277d87c9eaa663f92c081a869b34170380.zip
First set of speed improvements from Ying Chen <ying@almaden.ibm.com>.
Inline several commonly used functions as macros. Jeremy. (This used to be commit fc0219c7cc4b83e6db17d5b3be70d74fd7971089)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/blocking.c1
-rw-r--r--source3/smbd/dir.c12
-rw-r--r--source3/smbd/nttrans.c1
-rw-r--r--source3/smbd/process.c2
4 files changed, 0 insertions, 16 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c
index 292eb2455e..c90f475b46 100644
--- a/source3/smbd/blocking.c
+++ b/source3/smbd/blocking.c
@@ -22,7 +22,6 @@
#include "includes.h"
extern int DEBUGLEVEL;
extern int Client;
-extern int chain_size;
extern char *OutBuffer;
/****************************************************************************
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index cae6281e91..f3f261f0b2 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -493,8 +493,6 @@ int dptr_create(connection_struct *conn,char *path, BOOL old_handle, BOOL expect
return(dptr->dnum);
}
-#define DPTR_MASK ((uint32)(((uint32)1)<<31))
-
/****************************************************************************
Fill the 5 byte server reserved dptr field.
****************************************************************************/
@@ -516,16 +514,6 @@ BOOL dptr_fill(char *buf1,unsigned int key)
return(True);
}
-
-/****************************************************************************
- Return True if the offset is at zero.
-****************************************************************************/
-
-BOOL dptr_zero(char *buf)
-{
- return((IVAL(buf,1)&~DPTR_MASK) == 0);
-}
-
/****************************************************************************
Fetch the dir ptr and seek it given the 5 byte server field.
****************************************************************************/
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 81536156e5..f4015d50df 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -27,7 +27,6 @@ extern int Protocol;
extern int Client;
extern int smb_read_error;
extern int global_oplock_break;
-extern int chain_size;
extern BOOL case_sensitive;
extern BOOL case_preserve;
extern BOOL short_case_preserve;
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index d3551b96b1..7d6e171d05 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -561,7 +561,6 @@ static int construct_reply(char *inbuf,char *outbuf,int size,int bufsize)
int type = CVAL(inbuf,smb_com);
int outsize = 0;
int msg_type = CVAL(inbuf,0);
- extern int chain_size;
GetTimeOfDay(&smb_last_time);
@@ -726,7 +725,6 @@ int chain_reply(char *inbuf,char *outbuf,int size,int bufsize)
int outsize2;
char inbuf_saved[smb_wct];
char outbuf_saved[smb_wct];
- extern int chain_size;
int wct = CVAL(outbuf,smb_wct);
int outsize = smb_size + 2*wct + SVAL(outbuf,smb_vwv0+2*wct);