diff options
author | Tim Janik <timj@gtk.org> | 1999-02-15 05:47:24 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1999-02-15 05:47:24 +0000 |
commit | d31ba84c8ea40b6f0199318e43cc2bb2e816c586 (patch) | |
tree | af194d461d1d81f1a01ff68da994e65d9ef26999 /glib | |
parent | 0df89d51a4a9c5cdefa0a9f4c754958b054e9256 (diff) | |
download | glib-d31ba84c8ea40b6f0199318e43cc2bb2e816c586.tar.gz |
return guints instead of gints for g_hash_table_size and
Mon Feb 15 06:18:58 1999 Tim Janik <timj@gtk.org>
* glib.h: return guints instead of gints for g_hash_table_size
and g_hash_table_foreach_remove.
Diffstat (limited to 'glib')
-rw-r--r-- | glib/ghash.c | 6 | ||||
-rw-r--r-- | glib/glib.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/glib/ghash.c b/glib/ghash.c index 02fddbe07..61b02f1ff 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -229,14 +229,14 @@ g_hash_table_thaw (GHashTable *hash_table) g_hash_table_resize (hash_table); } -gint +guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data) { GHashNode *node, *prev; guint i; - gint deleted = 0; + guint deleted = 0; g_return_val_if_fail (hash_table != NULL, 0); g_return_val_if_fail (func != NULL, 0); @@ -294,7 +294,7 @@ g_hash_table_foreach (GHashTable *hash_table, } /* Returns the number of elements contained in the hash table. */ -gint +guint g_hash_table_size (GHashTable *hash_table) { g_return_val_if_fail (hash_table != NULL, 0); diff --git a/glib/glib.h b/glib/glib.h index 84306afeb..1f917b762 100644 --- a/glib/glib.h +++ b/glib/glib.h @@ -952,10 +952,10 @@ void g_hash_table_thaw (GHashTable *hash_table); void g_hash_table_foreach (GHashTable *hash_table, GHFunc func, gpointer user_data); -gint g_hash_table_foreach_remove (GHashTable *hash_table, +guint g_hash_table_foreach_remove (GHashTable *hash_table, GHRFunc func, gpointer user_data); -gint g_hash_table_size (GHashTable *hash_table); +guint g_hash_table_size (GHashTable *hash_table); /* Caches |