mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 10:42:18 -05:00
Removed some unnecessary casts.
This commit is contained in:
parent
2b94011fdc
commit
65c8494698
@ -1791,9 +1791,7 @@ challengeauth_response (char *username, char *password, char *challenge)
|
|||||||
g_string_append_printf (buf, "%02x", (unsigned int) digest[i]);
|
g_string_append_printf (buf, "%02x", (unsigned int) digest[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
digest = (unsigned char *) g_string_free (buf, FALSE);
|
return g_string_free (buf, FALSE);
|
||||||
|
|
||||||
return (char *) digest;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1091,9 +1091,9 @@ fe_open_url (const char *url)
|
|||||||
/* the http:// part's missing, prepend it, otherwise it won't always work */
|
/* the http:// part's missing, prepend it, otherwise it won't always work */
|
||||||
else if (strchr (url, ':') == NULL)
|
else if (strchr (url, ':') == NULL)
|
||||||
{
|
{
|
||||||
url = g_strdup_printf ("http://%s", url);
|
uri = g_strdup_printf ("http://%s", url);
|
||||||
fe_open_url_inner (url);
|
fe_open_url_inner (uri);
|
||||||
g_free ((char *)url);
|
g_free (uri);
|
||||||
}
|
}
|
||||||
/* we have a sane URL, send it to the browser untouched */
|
/* we have a sane URL, send it to the browser untouched */
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user