mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
lib: Use file_id_str_buf() in file_id_string()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
049b8833ae
commit
b09c216f5a
@ -55,10 +55,8 @@ char *file_id_str_buf(struct file_id fid, struct file_id_buf *dst)
|
||||
*/
|
||||
const char *file_id_string(TALLOC_CTX *mem_ctx, const struct file_id *id)
|
||||
{
|
||||
char *result = talloc_asprintf(mem_ctx, "%llx:%llx:%llx",
|
||||
(unsigned long long)id->devid,
|
||||
(unsigned long long)id->inode,
|
||||
(unsigned long long)id->extid);
|
||||
struct file_id_buf buf;
|
||||
char *result = talloc_strdup(mem_ctx, file_id_str_buf(*id, &buf));
|
||||
SMB_ASSERT(result != NULL);
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user