projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bt_uuid_compare: return actual comparison
[babeltrace.git]
/
src
/
common
/
uuid.c
diff --git
a/src/common/uuid.c
b/src/common/uuid.c
index f6d895a8914c63d34f2a64de766cf9d86698f7bc..7f817d0127085d89f03d1c706c4d0b7ae5d94b4c 100644
(file)
--- a/
src/common/uuid.c
+++ b/
src/common/uuid.c
@@
-103,13
+103,7
@@
end:
BT_HIDDEN
int bt_uuid_compare(const bt_uuid_t uuid_a, const bt_uuid_t uuid_b)
{
- int ret = 0;
-
- if (memcmp(uuid_a, uuid_b, BT_UUID_LEN) != 0) {
- ret = -1;
- }
-
- return ret;
+ return memcmp(uuid_a, uuid_b, BT_UUID_LEN);
}
BT_HIDDEN
This page took
0.024015 seconds
and
4
git commands to generate.