summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/file_id.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c
index a92cca08fa..0a1913a9c2 100644
--- a/source3/lib/file_id.c
+++ b/source3/lib/file_id.c
@@ -55,25 +55,11 @@ BOOL file_id_equal(const struct file_id *id1, const struct file_id *id2)
/*
a static string for a file_id structure
*/
-const char *file_id_static_string(const struct file_id *id)
+const char *file_id_string_tos(const struct file_id *id)
{
- static char buf[32];
- snprintf(buf, sizeof(buf), "%llx:%llx",
- (unsigned long long)id->devid,
- (unsigned long long)id->inode);
- return buf;
-}
-
-/*
- a 2nd static string for a file_id structure so we can print 2 at once
- */
-const char *file_id_static_string2(const struct file_id *id)
-{
- static char buf[32];
- snprintf(buf, sizeof(buf), "%llx:%llx",
- (unsigned long long)id->devid,
- (unsigned long long)id->inode);
- return buf;
+ return talloc_asprintf(talloc_tos(), "%llx:%llx",
+ (unsigned long long)id->devid,
+ (unsigned long long)id->inode);
}
/*