diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-05 09:56:55 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-06-10 19:19:13 +0200 |
commit | e22a0675c222077bee25c4ef1da5d00996d2c199 (patch) | |
tree | ce12a19c72e5a7e11e4ade799f28af13c23b237d /librpc | |
parent | 9c6f1a589ff56928b077904430086062e82b0acb (diff) | |
download | samba-e22a0675c222077bee25c4ef1da5d00996d2c199.tar.gz |
libndr: Use GUID_compare in GUID_equal
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/uuid.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/librpc/ndr/uuid.c b/librpc/ndr/uuid.c index cefe7b65d4f..5558cb6be9d 100644 --- a/librpc/ndr/uuid.c +++ b/librpc/ndr/uuid.c @@ -197,15 +197,7 @@ _PUBLIC_ bool GUID_all_zero(const struct GUID *u) _PUBLIC_ bool GUID_equal(const struct GUID *u1, const struct GUID *u2) { - if (u1->time_low != u2->time_low || - u1->time_mid != u2->time_mid || - u1->time_hi_and_version != u2->time_hi_and_version || - u1->clock_seq[0] != u2->clock_seq[0] || - u1->clock_seq[1] != u2->clock_seq[1] || - memcmp(u1->node, u2->node, 6) != 0) { - return false; - } - return true; + return (GUID_compare(u1, u2) == 0); } _PUBLIC_ int GUID_compare(const struct GUID *u1, const struct GUID *u2) |