summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-11-21 22:51:20 -0800
committerJeremy Allison <jra@samba.org>2008-11-21 22:51:20 -0800
commitd205766e60be96449930f270b0a77002dffab278 (patch)
tree8f8480244228915c5cfc78d78823ab205556c9dd
parent338303eb379320411829ee3dd1621e490f8d7fe1 (diff)
downloadsamba-d205766e60be96449930f270b0a77002dffab278.tar.gz
samba-d205766e60be96449930f270b0a77002dffab278.tar.bz2
samba-d205766e60be96449930f270b0a77002dffab278.zip
Fix a C90 error.
Jeremy.
-rw-r--r--source3/modules/vfs_streams_depot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c
index e7ecedaaed..0d6e0e02c1 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/modules/vfs_streams_depot.c
@@ -116,6 +116,7 @@ static char *stream_dir(vfs_handle_struct *handle, const char *base_path,
char *id_hex;
struct file_id id;
uint8 id_buf[16];
+ const char *rootdir;
tmp = talloc_asprintf(talloc_tos(), "%s/.streams", handle->conn->connectpath);
@@ -124,7 +125,7 @@ static char *stream_dir(vfs_handle_struct *handle, const char *base_path,
goto fail;
}
- const char *rootdir = lp_parm_const_string(
+ rootdir = lp_parm_const_string(
SNUM(handle->conn), "streams_depot", "directory",
tmp);
TALLOC_FREE(tmp);
@@ -149,7 +150,7 @@ static char *stream_dir(vfs_handle_struct *handle, const char *base_path,
first = hash & 0xff;
second = (hash >> 8) & 0xff;
- id_hex = hex_encode(talloc_tos(), id_buf, sizeof(id_buf));
+ id_hex = hex_encode_talloc(talloc_tos(), id_buf, sizeof(id_buf));
if (id_hex == NULL) {
errno = ENOMEM;