tContinue making chars const - surf - customized build of surf, the suckless webkit browser
(HTM) git clone git://src.adamsgaard.dk/surf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2fb122c01202e7b8f2b31f964daee19b86f4d433
(DIR) parent 6e68af115d24a11ca4135b7a620b68743eff2aa7
(HTM) Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 22 Nov 2015 02:22:38 +0100
Continue making chars const
Diffstat:
M surf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/surf.c b/surf.c
t@@ -394,9 +394,9 @@ loaduri(Client *c, const Arg *a)
const char *
geturi(Client *c)
{
- char *uri;
+ const char *uri;
- if (!(uri = (char *)webkit_web_view_get_uri(c->view)))
+ if (!(uri = webkit_web_view_get_uri(c->view)))
uri = "about:blank";
return uri;
}