diff options
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) |