diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-08-08 19:03:37 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-08-08 19:03:37 +0000 |
| commit | 3031a4311e8638df39555e9012aed8f4f79d412e (patch) | |
| tree | 350ae23903e81e67833356b4334013056483218f | |
| parent | ebc9df0362d138529e86df978ee846cc3254f056 (diff) | |
Notes
| -rw-r--r-- | lib/libc/uuid/uuid_compare.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/uuid/uuid_compare.c b/lib/libc/uuid/uuid_compare.c index 8b6d2189e325..3ff0cdb99d20 100644 --- a/lib/libc/uuid/uuid_compare.c +++ b/lib/libc/uuid/uuid_compare.c @@ -72,5 +72,8 @@ uuid_compare(uuid_t *a, uuid_t *b, uint32_t *status) res = (int)a->clock_seq_low - (int)b->clock_seq_low; if (res) return ((res < 0) ? -1 : 1); - return (memcmp(a->node, b->node, sizeof(uuid_t))); + res = memcmp(a->node, b->node, sizeof(a->node)); + if (res) + return ((res < 0) ? -1 : 1); + return (0); } |
