summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-31 16:36:06 -0700
committerJeremy Allison <jra@samba.org>2011-06-01 04:06:12 +0200
commitc7d2f6d35a95678c91faf0b5ac7f83bc5d1abfde (patch)
tree21939b3dee3e786c9ec4c00eb6b832f2560bd371 /examples
parent1cee71713f75dbee653ea86bd4e7c87efe677cf6 (diff)
downloadsamba-c7d2f6d35a95678c91faf0b5ac7f83bc5d1abfde.tar.gz
samba-c7d2f6d35a95678c91faf0b5ac7f83bc5d1abfde.tar.xz
samba-c7d2f6d35a95678c91faf0b5ac7f83bc5d1abfde.zip
Remove the char * argument from the SMB_VFS_GETWD() call. Now always
returns malloc'ed memory. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 1 04:06:12 CEST 2011 on sn-devel-104
Diffstat (limited to 'examples')
-rw-r--r--examples/VFS/skel_opaque.c2
-rw-r--r--examples/VFS/skel_transparent.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index f60f0fe162..f8399935d3 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -293,7 +293,7 @@ static int skel_chdir(vfs_handle_struct *handle, const char *path)
return -1;
}
-static char *skel_getwd(vfs_handle_struct *handle, char *buf)
+static char *skel_getwd(vfs_handle_struct *handle)
{
errno = ENOSYS;
return NULL;
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index f06e02afe5..7c91a615b1 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -280,9 +280,9 @@ static int skel_chdir(vfs_handle_struct *handle, const char *path)
return SMB_VFS_NEXT_CHDIR(handle, path);
}
-static char *skel_getwd(vfs_handle_struct *handle, char *buf)
+static char *skel_getwd(vfs_handle_struct *handle)
{
- return SMB_VFS_NEXT_GETWD(handle, buf);
+ return SMB_VFS_NEXT_GETWD(handle);
}
static int skel_ntimes(vfs_handle_struct *handle,