2
0
Fork 0

fix and comment ip hashing functions

personal/stbuehler/wip
Thomas Porzelt 2008-10-02 02:37:36 +02:00
parent 21c391da66
commit eb5aa9d9d4
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

@ -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