about summary refs log tree commit diff stats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index b786480..4914cf5 100644
--- a/util.c
+++ b/util.c
@@ -30,12 +30,12 @@ eprint(const char *errstr, ...) {
 }
 
 void
-spawn(Arg arg) {
+spawn(const char *arg) {
 	static char *shell = NULL;
 
 	if(!shell && !(shell = getenv("SHELL")))
 		shell = "/bin/sh";
-	if(!arg.cmd)
+	if(!arg)
 		return;
 	/* The double-fork construct avoids zombie processes and keeps the code
 	 * clean from stupid signal handlers. */
@@ -44,8 +44,8 @@ spawn(Arg arg) {
 			if(dpy)
 				close(ConnectionNumber(dpy));
 			setsid();
-			execl(shell, shell, "-c", arg.cmd, (char *)NULL);
-			fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg.cmd);
+			execl(shell, shell, "-c", arg, (char *)NULL);
+			fprintf(stderr, "dwm: execl '%s -c %s'", shell, arg);
 			perror(" failed");
 		}
 		exit(0);
/blame/cpp/.traces/get_handles_nested_record_elements?h=main&id=66b97b4d923274e1b6d2fd97df16cb73d820169b'>^
c495d2ac ^
844697c2 ^
088665ef ^

decaddb4 ^




6f5d7864 ^
6cc46216 ^
57699011 ^
6f5d7864 ^
6cc46216 ^
57699011 ^
6f5d7864 ^
6cc46216 ^
57699011 ^
6f5d7864 ^
6cc46216 ^





57699011 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
                       

                                                                                     
                       

                                                                                     
                       

                                                                                     
                        
                                                                                           

                                                                                  




                          
                         
                         
                                
                         
                         
                                
                         
                         
                                
                         





                            
                                
parse/0: instruction: 1
parse/0:   ingredient: {name: "34", value: 0, type: 0, properties: ["34": "literal"]}
parse/0:   product: {name: "12", value: 0, type: 1, properties: ["12": "integer"]}
parse/0: instruction: 1
parse/0:   ingredient: {name: "35", value: 0, type: 0, properties: ["35": "literal"]}
parse/0:   product: {name: "13", value: 0, type: 1, properties: ["13": "integer"]}
parse/0: instruction: 1
parse/0:   ingredient: {name: "36", value: 0, type: 0, properties: ["36": "literal"]}
parse/0:   product: {name: "14", value: 0, type: 1, properties: ["14": "integer"]}
parse/0: instruction: 19
parse/0:   ingredient: {name: "12", value: 0, type: 7, properties: ["12": "point-integer"]}
parse/0:   ingredient: {name: "1", value: 0, type: 0, properties: ["1": "offset"]}
parse/0:   product: {name: "15", value: 0, type: 1, properties: ["15": "integer"]}
after-brace/0: recipe main
after-brace/0: copy ...
after-brace/0: copy ...
after-brace/0: copy ...
after-brace/0: get ...
run/0: instruction main/0
run/0: ingredient 0 is 34
mem/0: storing 34 in location 12
run/0: instruction main/1
run/0: ingredient 0 is 35
mem/0: storing 35 in location 13
run/0: instruction main/2
run/0: ingredient 0 is 36
mem/0: storing 36 in location 14
run/0: instruction main/3
run/0: ingredient 0 is 12
run/0: ingredient 1 is 1
run/0: address to copy is 14
run/0: its type is 1
mem/0: location 14 is 36
run/0: product 0 is 36
mem/0: storing 36 in location 15