summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-04-27 15:41:16 +0200
committerQuentin Rameau <quinq@fifth.space>2017-04-27 15:41:16 +0200
commiteb32dd6eca5b6224bb5fb28cadef5bd035581ef3 (patch)
treeace26dc73dc03e70a9670e969ce0253184a107c0 /surf.c
parentd0e3c69e5920eecd7ac7e12c39ccb10e2ca5410d (diff)
downloadsurf-eb32dd6eca5b6224bb5fb28cadef5bd035581ef3.tar.gz
surf-eb32dd6eca5b6224bb5fb28cadef5bd035581ef3.tar.bz2
surf-eb32dd6eca5b6224bb5fb28cadef5bd035581ef3.zip
Avoid using global name stylefile in setstyle()
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/surf.c b/surf.c
index 77e3d6f..4ead122 100644
--- a/surf.c
+++ b/surf.c
@@ -163,7 +163,7 @@ static char cookiepolicy_set(const WebKitCookieAcceptPolicy p);
static void seturiparameters(Client *c, const char *uri);
static void setparameter(Client *c, int refresh, ParamName p, const Arg *a);
static const char *getstyle(const char *uri);
-static void setstyle(Client *c, const char *stylefile);
+static void setstyle(Client *c, const char *file);
static void runscript(Client *c);
static void evalscript(Client *c, const char *jsstr, ...);
static void updatewinid(Client *c);
@@ -755,12 +755,12 @@ getstyle(const char *uri)
}
void
-setstyle(Client *c, const char *stylefile)
+setstyle(Client *c, const char *file)
{
gchar *style;
- if (!g_file_get_contents(stylefile, &style, NULL, NULL)) {
- fprintf(stderr, "Could not read style file: %s\n", stylefile);
+ if (!g_file_get_contents(file, &style, NULL, NULL)) {
+ fprintf(stderr, "Could not read style file: %s\n", file);
return;
}