[Xfce4-commits] [apps/xfce4-screenshooter] 03/04: Fix compile warnings
noreply at xfce.org
noreply at xfce.org
Sat Jan 5 22:27:21 CET 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screenshooter.
commit c3ce04a144023eafee7247c2a315238e62fd0314
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Jan 5 18:21:35 2019 -0300
Fix compile warnings
---
lib/screenshooter-imgur.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/screenshooter-imgur.c b/lib/screenshooter-imgur.c
index 16ba77d..4b4c61b 100644
--- a/lib/screenshooter-imgur.c
+++ b/lib/screenshooter-imgur.c
@@ -33,8 +33,8 @@ static gboolean
imgur_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
{
const gchar *image_path, *title;
- gchar *online_file_name = NULL;
- gchar *delete_hash = NULL;
+ guchar *online_file_name = NULL;
+ guchar *delete_hash = NULL;
const gchar* proxy_uri;
SoupURI *soup_proxy_uri;
#if DEBUG > 0
@@ -131,7 +131,7 @@ imgur_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
for (child_node = root_node->children; child_node; child_node = child_node->next)
{
if (xmlStrEqual(child_node->name, (const xmlChar *) "id"))
- online_file_name = xmlNodeGetContent(child_node);
+ online_file_name = xmlNodeGetContent(child_node);
else if (xmlStrEqual (child_node->name, (const xmlChar *) "deletehash"))
delete_hash = xmlNodeGetContent (child_node);
}
@@ -141,7 +141,9 @@ imgur_upload_job (ScreenshooterJob *job, GArray *param_values, GError **error)
g_object_unref (session);
g_object_unref (msg);
- screenshooter_job_image_uploaded (job, online_file_name, delete_hash);
+ screenshooter_job_image_uploaded (job,
+ (const gchar*) online_file_name,
+ (const gchar*) delete_hash);
return TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list