From 7cc6e7ad72c38e61a8379e33faf4dcd6a22faf1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Thu, 22 Dec 2016 15:00:01 +0000 Subject: [PATCH] Remove useless memcmp() --- mud.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mud.c b/mud.c index 5a6aded..56d9d38 100644 --- a/mud.c +++ b/mud.c @@ -936,9 +936,6 @@ mud_recv_keyx(struct mud *mud, struct mud_path *path, uint64_t now, int sync_send = memcmp(shared_recv.public.recv, mud->crypto.public.send, sizeof(shared_recv.public.recv)); - int sync_recv = memcmp(mud->crypto.public.recv, shared_recv.public.send, - sizeof(mud->crypto.public.recv)); - memcpy(shared_recv.public.recv, mud->crypto.public.send, sizeof(shared_recv.public.recv));