Fix a C90 error.
authorJeremy Allison <jra@samba.org>
Sat, 22 Nov 2008 06:51:20 +0000 (22:51 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 22 Nov 2008 06:51:20 +0000 (22:51 -0800)
Jeremy.

source3/modules/vfs_streams_depot.c

index e7ecedaaed2b674fea066392f13f7c9c3b44aaff..0d6e0e02c1f7021951f93f3cf16529fed8d711c2 100644 (file)
@@ -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;