fix and comment ip hashing functions
parent
21c391da66
commit
eb5aa9d9d4
|
@ -277,7 +277,7 @@ void string_destroy_notify(gpointer str) {
|
|||
|
||||
|
||||
guint hash_ipv4(gconstpointer key) {
|
||||
return GPOINTER_TO_UINT(key);
|
||||
return *((guint*)key);
|
||||
}
|
||||
|
||||
guint hash_ipv6(gconstpointer key) {
|
||||
|
|
|
@ -26,7 +26,9 @@ LI_API gchar *ev_backend_string(guint backend);
|
|||
|
||||
LI_API void string_destroy_notify(gpointer str);
|
||||
|
||||
/* expects a pointer to a 32bit value */
|
||||
LI_API guint hash_ipv4(gconstpointer key);
|
||||
/* expects a pointer to a 128bit value */
|
||||
LI_API guint hash_ipv6(gconstpointer key);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue