Browse Source

fix and comment ip hashing functions

personal/stbuehler/wip
Thomas Porzelt 14 years ago
parent
commit
eb5aa9d9d4
  1. 2
      src/utils.c
  2. 2
      src/utils.h

2
src/utils.c

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

2
src/utils.h

@ -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…
Cancel
Save