summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-12-08 21:25:00 -0800
committerArnavion <arnavion@gmail.com>2014-12-08 21:25:00 -0800
commit65c8494698f65525e26fc6f6a4a00bcbbf10fa58 (patch)
tree6cc758098a1761f02fde8071bd79fc581401c29c /src
parent2b94011fdc033cf266a9f1d4084b9c35016502bb (diff)
Removed some unnecessary casts.
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c4
-rw-r--r--src/fe-gtk/fe-gtk.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/common/util.c b/src/common/util.c
index c35c098c..210951be 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1791,9 +1791,7 @@ challengeauth_response (char *username, char *password, char *challenge)
 		g_string_append_printf (buf, "%02x", (unsigned int) digest[i]);
 	}
 
-	digest = (unsigned char *) g_string_free (buf, FALSE);
-
-	return (char *) digest;
+	return g_string_free (buf, FALSE);
 }
 #endif
 
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index 962e9785..e180d46b 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -1091,9 +1091,9 @@ fe_open_url (const char *url)
 	/* the http:// part's missing, prepend it, otherwise it won't always work */
 	else if (strchr (url, ':') == NULL)
 	{
-		url = g_strdup_printf ("http://%s", url);
-		fe_open_url_inner (url);
-		g_free ((char *)url);
+		uri = g_strdup_printf ("http://%s", url);
+		fe_open_url_inner (uri);
+		g_free (uri);
 	}
 	/* we have a sane URL, send it to the browser untouched */
 	else