char *id_hex;
struct file_id id;
uint8 id_buf[16];
+ const char *rootdir;
tmp = talloc_asprintf(talloc_tos(), "%s/.streams", handle->conn->connectpath);
goto fail;
}
- const char *rootdir = lp_parm_const_string(
+ rootdir = lp_parm_const_string(
SNUM(handle->conn), "streams_depot", "directory",
tmp);
TALLOC_FREE(tmp);
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;