From: Volker Lendecke Date: Mon, 29 Oct 2012 15:41:15 +0000 (+0100) Subject: s3: Use file_id_string in file_id_string_tos X-Git-Tag: ldb-1.1.14~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4dfded000c8d8d62b1160fdf41357ccd8a77254b;p=thirdparty%2Fsamba.git s3: Use file_id_string in file_id_string_tos Reviewed by Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Oct 30 00:05:34 CET 2012 on sn-devel-104 --- diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c index 360b3551f2b..ba4b3a3d869 100644 --- a/source3/lib/file_id.c +++ b/source3/lib/file_id.c @@ -36,12 +36,7 @@ bool file_id_equal(const struct file_id *id1, const struct file_id *id2) */ const char *file_id_string_tos(const struct file_id *id) { - char *result = talloc_asprintf(talloc_tos(), "%llx:%llx:%llx", - (unsigned long long)id->devid, - (unsigned long long)id->inode, - (unsigned long long)id->extid); - SMB_ASSERT(result != NULL); - return result; + return file_id_string(talloc_tos(), id); } /*