[hackers] [surf] Cleanup previous patch. || Troels Henriksen

From: <hg_AT_suckless.org>
Date: Sat, 5 Nov 2011 12:06:13 +0100 (CET)

changeset: 230:c8cbb58b1a17
tag: tip
user: Troels Henriksen <athas_AT_sigkill.dk>
date: Sat Nov 05 12:06:08 2011 +0100
files: config.def.h surf.c
description:
Cleanup previous patch.


diff -r db176922bb09 -r c8cbb58b1a17 config.def.h
--- a/config.def.h Sat Nov 05 11:43:46 2011 +0100
+++ b/config.def.h Sat Nov 05 12:06:08 2011 +0100
_AT_@ -15,11 +15,11 @@
         "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
         "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
         p, q, winid, NULL } }
-#define DOWNLOAD(d, u) { \
+#define DOWNLOAD(d) { \
         .v = (char *[]){ "/bin/sh", "-c", \
         "xterm -e \"wget '$0' \
 --load-cookies ~/.surf/cookies.txt \
---user-agent '$1' ; sleep 5\"", d, u, NULL } }
+--user-agent '$1' ; sleep 5\"", d, useragent, NULL } }
 #define MODKEY GDK_CONTROL_MASK
 static Key keys[] = {
     /* modifier keyval function arg Focus */
diff -r db176922bb09 -r c8cbb58b1a17 surf.c
--- a/surf.c Sat Nov 05 11:43:46 2011 +0100
+++ b/surf.c Sat Nov 05 12:06:08 2011 +0100
_AT_@ -345,7 +345,7 @@
         Arg arg;
 
         updatewinid(c);
- arg = (Arg)DOWNLOAD((char *)webkit_download_get_uri(o), useragent);
+ arg = (Arg)DOWNLOAD((char *)webkit_download_get_uri(o));
         spawn(c, &arg);
         return FALSE;
 }
Received on Sat Nov 05 2011 - 12:06:13 CET

This archive was generated by hypermail 2.3.0 : Sat Nov 05 2011 - 12:12:06 CET