[hackers] [surf] Continue making chars const || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sun, 22 Nov 2015 02:23:54 +0100 (CET)

commit 2fb122c01202e7b8f2b31f964daee19b86f4d433
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Nov 22 02:22:38 2015 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sun Nov 22 02:22:38 2015 +0100

    Continue making chars const

diff --git a/surf.c b/surf.c
index d8a2ef6..faf712f 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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;
 }
Received on Sun Nov 22 2015 - 02:23:54 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 22 2015 - 02:24:20 CET