No need for those casts

This commit is contained in:
Alcaro 2017-01-02 02:11:18 +01:00
parent 1ae9c7d6d4
commit f95759c39b

View File

@ -57,7 +57,7 @@ int string_parse_html_anchor(const char *line, char *link, char *name,
{
if (!*link)
{
char *end = (char*)strstr(line, "\"");
const char *end = strstr(line, "\"");
if (!end)
return 1;
@ -70,8 +70,8 @@ int string_parse_html_anchor(const char *line, char *link, char *name,
if (!*name)
{
char *start = (char*)strstr(line, "\">");
char *end = strstr(start, "</a>");
const char *start = strstr(line, "\">");
const char *end = strstr(start, "</a>");
if (!start || !end)
return 1;