[libgda] Avoid using some reprecated API
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Avoid using some reprecated API
- Date: Mon, 23 Dec 2013 13:08:00 +0000 (UTC)
commit ba8ae651026aa26c91b96d6d18e0048630283a43
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Dec 23 12:39:57 2013 +0100
Avoid using some reprecated API
providers/firebird/gda-firebird-provider.c | 2 +-
tests/value-holders/check_set.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/providers/firebird/gda-firebird-provider.c b/providers/firebird/gda-firebird-provider.c
index 91de244..3cd51fd 100644
--- a/providers/firebird/gda-firebird-provider.c
+++ b/providers/firebird/gda-firebird-provider.c
@@ -1596,7 +1596,7 @@ gda_firebird_provider_statement_execute (GdaServerProvider *provider,
pv = g_new (gchar, 1);
mem_to_free = g_slist_prepend (mem_to_free, pv);
- *pv = g_value_get_char (value);
+ *pv = g_value_get_schar (value);
fbvar->sqldata = pv;
fbvar->sqllen = sizeof (gchar);
fbvar->sqlind = flag0;
diff --git a/tests/value-holders/check_set.c b/tests/value-holders/check_set.c
index ec73f53..e877bed 100644
--- a/tests/value-holders/check_set.c
+++ b/tests/value-holders/check_set.c
@@ -326,7 +326,7 @@ t5_validate_change (GdaSet *set, gchar *token)
if (v2 && (G_VALUE_TYPE (v2) == G_TYPE_INT) &&
v3 && (G_VALUE_TYPE (v3) == G_TYPE_CHAR) &&
(g_value_get_int (v2) == 125) &&
- (g_value_get_char (v3) == 'd')) {
+ (g_value_get_schar (v3) == 'd')) {
g_print ("GdaSet change accepted\n");
return NULL;
}
@@ -386,7 +386,7 @@ test5 (GError **error)
gda_value_free (value);
h = gda_set_get_holder (set, "H3");
- g_value_set_char ((value = gda_value_new (G_TYPE_CHAR)), 'd');
+ g_value_set_schar ((value = gda_value_new (G_TYPE_CHAR)), 'd');
if (!gda_holder_set_value (h, value, NULL)) {
g_set_error (error, TEST_ERROR, TEST_ERROR_GENERIC, "%s",
"gda_holder_set_value() should not have failed");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]