From 7d95444286ca0abf66fe2db5d0f871338f2d9e35 Mon Sep 17 00:00:00 2001 From: DevilBinder <29162669+Devilbinder@users.noreply.github.com> Date: Fri, 24 Jun 2022 20:39:18 +0200 Subject: [PATCH] cleanup operator overload --- fdrs_types.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fdrs_types.h b/fdrs_types.h index f59c7cd..7c29f4e 100644 --- a/fdrs_types.h +++ b/fdrs_types.h @@ -27,10 +27,7 @@ typedef struct Peer_t{ } bool operator==(Peer_t c){ - if(memcmp(this->peer,c.peer,6) == 0){ - return true; - } - return false; + return (memcmp(this->peer,c.peer,6) == 0); } }Peer_t;