From c50a03e4e2c47b828f81f2e4dc214ec84d9cae63 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 7 Aug 2009 09:31:45 +0200 Subject: 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 --- source3/include/proto.h | 2 +- source3/include/smb.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index e4523a1625b..b00a08446ad 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 c33c5363f3f..b53735d36d0 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; -- cgit