pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0e3c69
)
Avoid using global name stylefile in setstyle()
author
Quentin Rameau
<quinq@fifth.space>
Thu, 27 Apr 2017 13:41:16 +0000
(15:41 +0200)
committer
Quentin Rameau
<quinq@fifth.space>
Thu, 27 Apr 2017 13:41:16 +0000
(15:41 +0200)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
77e3d6f
..
4ead122
100644
(file)
--- 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 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 *
style
file);
+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);
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
}
void
-setstyle(Client *c, const char *
style
file)
+setstyle(Client *c, const char *file)
{
gchar *style;
{
gchar *style;
- if (!g_file_get_contents(
style
file, &style, NULL, NULL)) {
- fprintf(stderr, "Could not read style file: %s\n",
style
file);
+ if (!g_file_get_contents(file, &style, NULL, NULL)) {
+ fprintf(stderr, "Could not read style file: %s\n", file);
return;
}
return;
}