diff options
author | Jeremy Allison <jra@samba.org> | 2000-01-25 22:57:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-01-25 22:57:51 +0000 |
commit | b5e7e4277d87c9eaa663f92c081a869b34170380 (patch) | |
tree | 65da8a8a5b4615cfd26e81696ef486fc1fb07d31 /source3/smbd/dir.c | |
parent | 014bdf941f71447909d3d98974e543fbbebfd75e (diff) | |
download | samba-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/dir.c')
-rw-r--r-- | source3/smbd/dir.c | 12 |
1 files changed, 0 insertions, 12 deletions
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. ****************************************************************************/ |