projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
lib
/
silccore
/
id.h
diff --git
a/lib/silccore/id.h
b/lib/silccore/id.h
index 349f65150eafb928259026c07b73ba90c57ffda3..114583bbce62de8919481488e491915bd5800154 100644
(file)
--- a/
lib/silccore/id.h
+++ b/
lib/silccore/id.h
@@
-119,8
+119,8
@@
typedef struct {
SILC_ID_CHANNEL_COMPARE(id1, id2))
/* Compare nickname hash from Client ID */
SILC_ID_CHANNEL_COMPARE(id1, id2))
/* Compare nickname hash from Client ID */
-#define SILC_ID_COMPARE_HASH(id
, _hash
) \
-
memcmp(id->hash, _hash, CLIENTID_HASH_LEN
)
+#define SILC_ID_COMPARE_HASH(id
1, id2
) \
+
(!memcmp((id1)->hash, (id2)->hash, CLIENTID_HASH_LEN)
)
/* Prototypes */
unsigned char *silc_id_id2str(void *id, SilcIdType type);
/* Prototypes */
unsigned char *silc_id_id2str(void *id, SilcIdType type);