From d2cf97aeba14a4d336fb57b01f19bd5a08dcb003 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 29 Nov 2007 13:24:54 -0800 Subject: Remove the explicit TALLOC_CTX * from cli_struct. Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62) --- source3/include/client.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/include/client.h') diff --git a/source3/include/client.h b/source3/include/client.h index dd8bb0dba9..c601e1a91c 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -135,7 +135,10 @@ struct cli_state { uint32 posix_capabilities; bool dfsroot; - TALLOC_CTX *mem_ctx; +#if 0 + TALLOC_CTX *longterm_mem_ctx; + TALLOC_CTX *call_mem_ctx; +#endif smb_sign_info sign_info; @@ -170,8 +173,8 @@ typedef struct file_info { struct timespec mtime_ts; struct timespec atime_ts; struct timespec ctime_ts; - pstring name; - pstring dir; + char name[1024]; + char dir[1024]; /* Should use allocated PATH_MAX here.... */ char short_name[13*3]; /* the *3 is to cope with multi-byte */ } file_info; -- cgit