summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-08-07 09:31:45 +0200
committerStefan Metzmacher <metze@samba.org>2009-08-07 14:18:17 +0200
commitc50a03e4e2c47b828f81f2e4dc214ec84d9cae63 (patch)
tree9b3a93b399215737652d57d3fdff350fe363ed9c /source3/include
parentdfae090c5d0c238f2c620d77edc6bb6cf1bb027b (diff)
downloadsamba-c50a03e4e2c47b828f81f2e4dc214ec84d9cae63.tar.gz
samba-c50a03e4e2c47b828f81f2e4dc214ec84d9cae63.tar.bz2
samba-c50a03e4e2c47b828f81f2e4dc214ec84d9cae63.zip
s3:smbd: remove dirptr and dirpath from connection_struct
They're both only used in the context of a function, so we can make them stack variables. metze
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/include/smb.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index e4523a1625..b00a08446a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6208,7 +6208,7 @@ struct dptr_struct *dptr_fetch(char *buf,int *num);
struct dptr_struct *dptr_fetch_lanman2(int dptr_num);
bool dir_check_ftype(connection_struct *conn, uint32 mode, uint32 dirtype);
bool get_dir_entry(TALLOC_CTX *ctx,
- connection_struct *conn,
+ struct dptr_struct *dirptr,
const char *mask,
uint32 dirtype,
char **pp_fname_out,
diff --git a/source3/include/smb.h b/source3/include/smb.h
index c33c5363f3..b53735d36d 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -551,12 +551,10 @@ typedef struct connection_struct {
struct share_params *params;
bool force_user;
struct vuid_cache vuid_cache;
- struct dptr_struct *dirptr;
bool printer;
bool ipc;
bool read_only; /* Attributes for the current user of the share. */
bool admin_user; /* Attributes for the current user of the share. */
- char *dirpath;
char *connectpath;
char *origpath;