diff options
author | Volker Lendecke <vl@samba.org> | 2019-09-07 18:56:54 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-17 22:49:36 +0000 |
commit | 27b63641828f6f1e7e3c8b97cb34795a75688b8f (patch) | |
tree | de2ef3e4f58bc0ef380ce99dca1dbb8f6741eba1 /lib | |
parent | d9ce9c42cb6abd3263d639d6474a92b85776ba8d (diff) | |
download | samba-27b63641828f6f1e7e3c8b97cb34795a75688b8f.tar.gz |
lib: Use server_id_cmp() in server_id_equal()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/server_id.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/util/server_id.c b/lib/util/server_id.c index ca998116bf4..e66c9791007 100644 --- a/lib/util/server_id.c +++ b/lib/util/server_id.c @@ -49,19 +49,8 @@ int server_id_cmp(const struct server_id *p1, const struct server_id *p2) bool server_id_equal(const struct server_id *p1, const struct server_id *p2) { - if (!server_id_same_process(p1, p2)) { - return false; - } - - if (p1->task_id != p2->task_id) { - return false; - } - - if (p1->unique_id != p2->unique_id) { - return false; - } - - return true; + int cmp = server_id_cmp(p1, p2); + return (cmp == 0); } char *server_id_str_buf(struct server_id id, struct server_id_buf *dst) |