summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAravind Srinivasan <aravind.srinivasan@isilon.com>2009-05-11 22:39:05 +0000
committerTim Prouty <tprouty@samba.org>2009-05-18 21:50:07 -0700
commit1718e803dc9269f8ba0db4260cc3b8a000da248a (patch)
tree7cac516d3d788add46b5f0567dd5897029dd0fbb /source3/include
parentd38e5d18a7ad5db0ace78afe3b42ec5f5174752b (diff)
downloadsamba-1718e803dc9269f8ba0db4260cc3b8a000da248a.tar.gz
samba-1718e803dc9269f8ba0db4260cc3b8a000da248a.tar.bz2
samba-1718e803dc9269f8ba0db4260cc3b8a000da248a.zip
s3: Always allocate memory in dptr_ReadDirName
This is a follow up to 69d61453df6019caef4e7960fa78c6a3c51f3d2a to adjust the API to allow the lower layers allocate memory. Now the memory can explicitly be freed rather than relying on talloc_tos(). Signed-off-by: Tim Prouty <tprouty@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 68c312568b..6f298ad9a0 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6142,7 +6142,7 @@ void dptr_SeekDir(struct dptr_struct *dptr, long offset);
long dptr_TellDir(struct dptr_struct *dptr);
bool dptr_has_wild(struct dptr_struct *dptr);
int dptr_dnum(struct dptr_struct *dptr);
-const char *dptr_ReadDirName(TALLOC_CTX *ctx,
+char *dptr_ReadDirName(TALLOC_CTX *ctx,
struct dptr_struct *dptr,
long *poffset,
SMB_STRUCT_STAT *pst);