mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
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
This commit is contained in:
parent
69b861ec5c
commit
ed670989f4
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2007-12-31 Matthias Clasen <mclasen@redhat.com>
|
2007-12-31 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gslice.c: Remove C99 comments
|
* glib/gslice.c: Remove C99 comments
|
||||||
|
@ -786,7 +786,7 @@ g_hash_table_insert (GHashTable *hash_table,
|
|||||||
gpointer key,
|
gpointer key,
|
||||||
gpointer value)
|
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 key,
|
||||||
gpointer value)
|
gpointer value)
|
||||||
{
|
{
|
||||||
return g_hash_table_insert_internal (hash_table, key, value, TRUE);
|
g_hash_table_insert_internal (hash_table, key, value, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user