From f928574cb8ba2a191a0d5849a8ee586149fe488e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pekka=20Geh=C3=B6r?= Date: Mon, 12 Jan 2009 14:01:17 +0200 Subject: [PATCH] Change gint to glong --- irreco/src/webdb/irreco_webdb_client.c | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/irreco/src/webdb/irreco_webdb_client.c b/irreco/src/webdb/irreco_webdb_client.c index da6743de..230cdd12 100644 --- a/irreco/src/webdb/irreco_webdb_client.c +++ b/irreco/src/webdb/irreco_webdb_client.c @@ -941,7 +941,7 @@ gint irreco_webdb_client_get_max_image_size(IrrecoWebdbClient *self) SoupXmlrpcMessage *msg; SoupXmlrpcResponse *response; SoupXmlrpcValue *value; - gint max_image_size = 0; + glong max_image_size = 0; IRRECO_ENTER @@ -966,7 +966,7 @@ gint irreco_webdb_client_get_max_image_size(IrrecoWebdbClient *self) value = soup_xmlrpc_response_get_value (response); /* Try to get integer out of value */ - if(!soup_xmlrpc_value_get_int(value, (glong *) &max_image_size)) { + if(!soup_xmlrpc_value_get_int(value, &max_image_size)) { max_image_size = 0; } @@ -986,7 +986,7 @@ gint irreco_webdb_client_create_theme(IrrecoWebdbClient *self, SoupXmlrpcMessage *msg; SoupXmlrpcResponse *response; SoupXmlrpcValue *value; - gint theme_id; + glong theme_id; IRRECO_ENTER msg = soup_xmlrpc_message_new (IRRECO_WEBDB_URL); @@ -1015,7 +1015,7 @@ gint irreco_webdb_client_create_theme(IrrecoWebdbClient *self, value = soup_xmlrpc_response_get_value (response); /* Try to get integer out of value */ - if(soup_xmlrpc_value_get_int(value, (glong *) &theme_id)){ + if(soup_xmlrpc_value_get_int(value, &theme_id)){ g_object_unref (response); IRRECO_RETURN_INT(theme_id); } @@ -1134,7 +1134,7 @@ gboolean irreco_webdb_client_get_theme_by_id(IrrecoWebdbClient *self, gchar *uploaded = NULL; gchar *modified = NULL; gchar *downloaded = NULL; - gint download_count; + glong download_count; GHashTable *tmp = NULL; SoupXmlrpcValue *hash = NULL; SoupXmlrpcMessage *msg; @@ -1221,7 +1221,7 @@ gboolean irreco_webdb_client_get_theme_by_id(IrrecoWebdbClient *self, } hash = g_hash_table_lookup(tmp, "download_count"); - if (!soup_xmlrpc_value_get_int(hash, (glong *) &download_count)) { + if (!soup_xmlrpc_value_get_int(hash, &download_count)) { IRRECO_DEBUG("No value in response\n"); goto end; } @@ -1379,7 +1379,7 @@ gint irreco_webdb_client_add_bg_to_theme(IrrecoWebdbClient *self, SoupXmlrpcMessage *msg; SoupXmlrpcResponse *response; SoupXmlrpcValue *value; - gint bg_id; + glong bg_id; gchar *base64_image; IRRECO_ENTER @@ -1415,7 +1415,7 @@ gint irreco_webdb_client_add_bg_to_theme(IrrecoWebdbClient *self, value = soup_xmlrpc_response_get_value (response); /* Try to get integer out of value */ - if(soup_xmlrpc_value_get_int(value, (glong *) &bg_id)){ + if(soup_xmlrpc_value_get_int(value, &bg_id)){ g_object_unref (response); IRRECO_RETURN_INT(bg_id); } @@ -1436,7 +1436,7 @@ gboolean irreco_webdb_client_get_backgrounds(IrrecoWebdbClient *self, SoupXmlrpcValueArrayIterator *iter; SoupXmlrpcValue *value; SoupXmlrpcValue *array_val; - gint ret; + glong ret; IRRECO_ENTER irreco_webdb_client_reset_env(self); @@ -1467,13 +1467,13 @@ gboolean irreco_webdb_client_get_backgrounds(IrrecoWebdbClient *self, gchar *id; soup_xmlrpc_value_array_iterator_get_value(iter, &array_val); - if (!soup_xmlrpc_value_get_int(array_val, (glong *)&ret)) { + if (!soup_xmlrpc_value_get_int(array_val, &ret)) { IRRECO_DEBUG ("NO value\n"); goto end; } - IRRECO_DEBUG("%d\n", ret); + IRRECO_DEBUG("%ld\n", ret); - id = g_strdup_printf ("%d", ret); + id = g_strdup_printf ("%ld", ret); irreco_string_table_add(*bg_list, id, NULL); g_free(id); @@ -1635,7 +1635,7 @@ gint irreco_webdb_client_add_button_to_theme(IrrecoWebdbClient *self, SoupXmlrpcMessage *msg; SoupXmlrpcResponse *response; SoupXmlrpcValue *value; - gint button_id; + glong button_id; gchar *base64_image_up; gchar *base64_image_down; IRRECO_ENTER @@ -1683,7 +1683,7 @@ gint irreco_webdb_client_add_button_to_theme(IrrecoWebdbClient *self, value = soup_xmlrpc_response_get_value (response); /* Try to get integer out of value */ - if(soup_xmlrpc_value_get_int(value, (glong *) &button_id)){ + if(soup_xmlrpc_value_get_int(value, &button_id)){ g_object_unref (response); IRRECO_RETURN_INT(button_id); } @@ -1704,7 +1704,7 @@ gboolean irreco_webdb_client_get_buttons(IrrecoWebdbClient *self, SoupXmlrpcValueArrayIterator *iter; SoupXmlrpcValue *value; SoupXmlrpcValue *array_val; - gint ret; + glong ret; IRRECO_ENTER irreco_webdb_client_reset_env(self); @@ -1735,13 +1735,13 @@ gboolean irreco_webdb_client_get_buttons(IrrecoWebdbClient *self, gchar *id; soup_xmlrpc_value_array_iterator_get_value(iter, &array_val); - if (!soup_xmlrpc_value_get_int(array_val, (glong *) &ret)) { + if (!soup_xmlrpc_value_get_int(array_val, &ret)) { IRRECO_DEBUG ("NO value\n"); goto end; } - IRRECO_DEBUG("%d\n", ret); + IRRECO_DEBUG("%ld\n", ret); - id = g_strdup_printf("%d", ret); + id = g_strdup_printf("%ld", ret); irreco_string_table_add(*button_list, id, NULL); g_free(id); @@ -1769,7 +1769,7 @@ gboolean irreco_webdb_client_get_button_by_id(IrrecoWebdbClient *self, gboolean allow_text = FALSE; gchar *text_format_up = NULL; gchar *text_format_down = NULL; - gint text_padding; + glong text_padding; gdouble text_h_align; gdouble text_v_align; gchar *image_up_hash = NULL; @@ -1842,7 +1842,7 @@ gboolean irreco_webdb_client_get_button_by_id(IrrecoWebdbClient *self, soup_xmlrpc_value_get_string(hash, &text_format_down); hash = g_hash_table_lookup(tmp, "text_padding"); - if (!soup_xmlrpc_value_get_int(hash, (glong *) &text_padding)) { + if (!soup_xmlrpc_value_get_int(hash, &text_padding)) { IRRECO_DEBUG("No value in response\n"); goto end; } -- 2.11.4.GIT