summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-22 01:52:13 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-22 01:52:13 +0100
commit6124176b896b528d57aeab7e0eaa46271bcb59c5 (patch)
treea6c52bbbb2713371f6904bbf9e0239f7f2e5a84e /surf.c
parent11fa5a7a4df034aace061c726cc261c5d57e2509 (diff)
downloadsurf-6124176b896b528d57aeab7e0eaa46271bcb59c5.tar.gz
surf-6124176b896b528d57aeab7e0eaa46271bcb59c5.tar.bz2
surf-6124176b896b528d57aeab7e0eaa46271bcb59c5.zip
Use char instead of gchar and make them const when possible
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/surf.c b/surf.c
index edfc3c3..23fd452 100644
--- a/surf.c
+++ b/surf.c
@@ -108,7 +108,7 @@ static char *buildpath(const char *path);
static Client *newclient(Client *c);
static void addaccelgroup(Client *c);
static void loaduri(Client *c, const Arg *a);
-static char *geturi(Client *c);
+static const char *geturi(Client *c);
static void setatom(Client *c, int a, const char *v);
static const char *getatom(Client *c, int a);
static void updatetitle(Client *c);
@@ -116,12 +116,12 @@ static void gettogglestats(Client *c);
static void getpagestats(Client *c);
static WebKitCookieAcceptPolicy cookiepolicy_get(void);
static char cookiepolicy_set(const WebKitCookieAcceptPolicy p);
-static const gchar *getstyle(const char *uri);
+static const char *getstyle(const char *uri);
static void setstyle(Client *c, const char *stylefile);
static void runscript(Client *c);
static void evalscript(Client *c, const char *jsstr, ...);
static void updatewinid(Client *c);
-static void handleplumb(Client *c, const gchar *uri);
+static void handleplumb(Client *c, const char *uri);
static void newwindow(Client *c, const Arg *a, gboolean noembed);
static void spawn(Client *c, const Arg *a);
static void destroyclient(Client *c);
@@ -392,7 +392,7 @@ loaduri(Client *c, const Arg *a)
g_free(url);
}
-char *
+const char *
geturi(Client *c)
{
char *uri;
@@ -513,7 +513,7 @@ cookiepolicy_set(const WebKitCookieAcceptPolicy p)
return 'A';
}
-const gchar *
+const char *
getstyle(const char *uri)
{
int i;
@@ -582,7 +582,7 @@ updatewinid(Client *c)
}
void
-handleplumb(Client *c, const gchar *uri)
+handleplumb(Client *c, const char *uri)
{
Arg a = (Arg)PLUMB(uri);
spawn(c, &a);