diff options
author | Volker Lendecke <vl@samba.org> | 2014-09-30 06:32:36 +0000 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2014-10-02 12:02:01 +0200 |
commit | 072bf227a76ff0683aa4a32255ce89db2107829e (patch) | |
tree | f26dc028e6df25a6ce9e52bd12133af96aada643 | |
parent | 82c7ab22665d621ea5df0450638cb5dc0f40bff8 (diff) | |
download | samba-072bf227a76ff0683aa4a32255ce89db2107829e.tar.gz samba-072bf227a76ff0683aa4a32255ce89db2107829e.tar.xz samba-072bf227a76ff0683aa4a32255ce89db2107829e.zip |
lib: Use GUID_buf_string in GUID_string
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Matthieu Patou <mat@matws.net>
-rw-r--r-- | librpc/ndr/uuid.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/librpc/ndr/uuid.c b/librpc/ndr/uuid.c index 3ceb132f59..654bebd0d0 100644 --- a/librpc/ndr/uuid.c +++ b/librpc/ndr/uuid.c @@ -230,15 +230,8 @@ _PUBLIC_ int GUID_compare(const struct GUID *u1, const struct GUID *u2) */ _PUBLIC_ char *GUID_string(TALLOC_CTX *mem_ctx, const struct GUID *guid) { - return talloc_asprintf(mem_ctx, - "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", - guid->time_low, guid->time_mid, - guid->time_hi_and_version, - guid->clock_seq[0], - guid->clock_seq[1], - guid->node[0], guid->node[1], - guid->node[2], guid->node[3], - guid->node[4], guid->node[5]); + struct GUID_txt_buf buf; + return talloc_strdup(mem_ctx, GUID_buf_string(guid, &buf)); } /** |