summaryrefslogtreecommitdiff
path: root/glib/ghash.c
diff options
context:
space:
mode:
authorAlvaro Lopez Ortega <alvaro@sun.com>2008-01-02 11:54:08 +0000
committerAlvaro Lopez Ortega <alo@src.gnome.org>2008-01-02 11:54:08 +0000
commited670989f41b014ba72a1180d0207c79a7a6e1dd (patch)
treeafeda929631a51d811bef53abdd85118d4866ae4 /glib/ghash.c
parent69b861ec5cdda6d04a7e788e2f15cd3242dd9b8e (diff)
downloadglib-ed670989f41b014ba72a1180d0207c79a7a6e1dd.tar.gz
These functions prototype defines its output as void, and therefore they
2008-01-02 Alvaro Lopez Ortega <alvaro@sun.com> * glib/ghash.c (g_hash_table_replace, g_hash_table_insert): These functions prototype defines its output as void, and therefore they should not return any value. This patch fixes a compilation error: the "return" clauses were incompatible with the functions prototype. svn path=/trunk/; revision=6230
Diffstat (limited to 'glib/ghash.c')
-rw-r--r--glib/ghash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/ghash.c b/glib/ghash.c
index 6ae57c7f1..62df5b953 100644
--- a/glib/ghash.c
+++ b/glib/ghash.c
@@ -786,7 +786,7 @@ g_hash_table_insert (GHashTable *hash_table,
gpointer key,
gpointer value)
{
- return g_hash_table_insert_internal (hash_table, key, value, FALSE);
+ g_hash_table_insert_internal (hash_table, key, value, FALSE);
}
/**
@@ -807,7 +807,7 @@ g_hash_table_replace (GHashTable *hash_table,
gpointer key,
gpointer value)
{
- return g_hash_table_insert_internal (hash_table, key, value, TRUE);
+ g_hash_table_insert_internal (hash_table, key, value, TRUE);
}
/*