diff options
author | Christian Ambach <ambi@samba.org> | 2012-05-08 09:15:12 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-05-08 11:15:07 +0200 |
commit | 2ae02efabd5151c849ea079851607e7f45cf7a6f (patch) | |
tree | 85276c0d7f418a2fe190e5145ad1a0ee64b505c1 /source3/modules | |
parent | 617b63658b02957422359a76fd8b8e4748d228ee (diff) | |
download | samba-2ae02efabd5151c849ea079851607e7f45cf7a6f.tar.gz samba-2ae02efabd5151c849ea079851607e7f45cf7a6f.tar.bz2 samba-2ae02efabd5151c849ea079851607e7f45cf7a6f.zip |
s3:vfs/shadow_copy2 fix some compiler warnings
about unused variables
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue May 8 11:15:07 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 4efc0cad57..0e6e14fc72 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -159,7 +159,7 @@ static char *shadow_copy2_insert_string(TALLOC_CTX *mem_ctx, DEBUG(10, ("strftime failed\n")); return NULL; } - return talloc_asprintf(talloc_tos(), "/%s/%s", + return talloc_asprintf(mem_ctx, "/%s/%s", lp_parm_const_string( SNUM(handle->conn), "shadow", "snapdir", ".snapshots"), @@ -997,8 +997,7 @@ static char *shadow_copy2_find_snapdir(TALLOC_CTX *mem_ctx, return NULL; } -static bool shadow_copy2_snapshot_to_gmt(TALLOC_CTX *mem_ctx, - vfs_handle_struct *handle, +static bool shadow_copy2_snapshot_to_gmt(vfs_handle_struct *handle, const char *name, char *gmt, size_t gmt_len) { @@ -1112,7 +1111,7 @@ static int shadow_copy2_get_shadow_copy_data( * directory */ if (!shadow_copy2_snapshot_to_gmt( - tmp_ctx, handle, d->d_name, + handle, d->d_name, snapshot, sizeof(snapshot))) { DEBUG(6, ("shadow_copy2_get_shadow_copy_data: " |