]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Ooops, GUID_equal was already around :-)
authorVolker Lendecke <vl@samba.org>
Sat, 19 Jul 2008 17:50:36 +0000 (19:50 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 19 Jul 2008 17:50:36 +0000 (19:50 +0200)
source/include/proto.h
source/lib/util_uuid.c
source/librpc/ndr/ndr_misc.c

index c204a9419c4e604deecd7dc421908464a5877d68..136abca7f3c07b55587ad1785af4460c5cb2659c 100644 (file)
@@ -1817,7 +1817,6 @@ void smb_uuid_generate_random(struct GUID *uu);
 const char *smb_uuid_string(TALLOC_CTX *mem_ctx, const struct GUID uu);
 bool smb_string_to_uuid(const char *in, struct GUID* uu);
 char *guid_binstring(const struct GUID *guid);
-bool guid_equal(const struct GUID *g1, const struct GUID *g2);
 
 /* The following definitions come from lib/version.c  */
 
index 0d788ac8b43e0b6079ba51880cbacd4433e059a1..3a8f7b3f4f4dd232b6c98d2a28faed21ce465ed1 100644 (file)
@@ -129,13 +129,3 @@ char *guid_binstring(const struct GUID *guid)
 
        return binary_string_rfc2254((char *)guid_flat.info, UUID_FLAT_SIZE);
 }
-
-bool guid_equal(const struct GUID *g1, const struct GUID *g2)
-{
-       return ((g1->time_low == g2->time_low)
-               && (g1->time_mid == g2->time_mid)
-               && (g1->time_hi_and_version == g2->time_hi_and_version)
-               && (memcmp(g1->clock_seq, g2->clock_seq,
-                          sizeof(g1->clock_seq)) == 0)
-               && (memcmp(g1->node, g2->node, sizeof(g1->node)) == 0));
-}
index f1468166ff95f9983fecdb402fd673a3e8d7eb0a..e86842527c9cbf6847e87f9e0c6895a193e3a84c 100644 (file)
@@ -46,7 +46,7 @@ void ndr_print_GUID(struct ndr_print *ndr, const char *name, const struct GUID *
 bool ndr_syntax_id_equal(const struct ndr_syntax_id *i1,
                         const struct ndr_syntax_id *i2)
 {
-       return guid_equal(&i1->uuid, &i2->uuid)
+       return GUID_equal(&i1->uuid, &i2->uuid)
                && (i1->if_version == i2->if_version);
 }