summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2015-11-20 16:35:13 +0100
committerQuentin Rameau <quinq@fifth.space>2015-11-20 16:35:13 +0100
commit5def2e51da62f46ca9f68af1ea8619d4a73caa87 (patch)
tree77c0432257381e424893ff8facc90e26ec6b1c6d
parent2d1e42236890b7495c0a9c4bce66420f937da559 (diff)
downloadsurf-5def2e51da62f46ca9f68af1ea8619d4a73caa87.tar.gz
surf-5def2e51da62f46ca9f68af1ea8619d4a73caa87.tar.bz2
surf-5def2e51da62f46ca9f68af1ea8619d4a73caa87.zip
Adapt config MACROs SETPROP, DOWNLOAD, PLUMB
As we now use directly const strings from WebKitGTK, “constify” arg void pointer.
-rw-r--r--config.def.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index a1baced..ac78f0e 100644
--- a/config.def.h
+++ b/config.def.h
@@ -37,7 +37,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
WEBKIT_FIND_OPTIONS_WRAP_AROUND;
#define SETPROP(p, q) { \
- .v = (char *[]){ "/bin/sh", "-c", \
+ .v = (const char *[]){ "/bin/sh", "-c", \
"prop=\"`xprop -id $2 $0 " \
"| sed \"s/^$0(STRING) = \\(\\\\\"\\?\\)\\(.*\\)\\1$/\\2/\" " \
"| xargs -0 printf %b | dmenu`\" &&" \
@@ -48,7 +48,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
/* DOWNLOAD(URI, referer) */
#define DOWNLOAD(d, r) { \
- .v = (char *[]){ "/bin/sh", "-c", \
+ .v = (const char *[]){ "/bin/sh", "-c", \
"st -e /bin/sh -c \"curl -L -J -O --user-agent '$1'" \
" --referer '$2' -b $3 -c $3 '$0';" \
" sleep 5;\"", \
@@ -61,7 +61,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
* "http://" or "https://" should be opened.
*/
#define PLUMB(u) {\
- .v = (char *[]){ "/bin/sh", "-c", \
+ .v = (const char *[]){ "/bin/sh", "-c", \
"xdg-open \"$0\"", u, NULL \
} \
}