aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-22 20:45:58 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-22 20:45:58 +0530
commitb765e4811bdc0b570a7a2542cb7d3b1b2e2064f4 (patch)
tree27b5be33498178fec9a048a45cbbfd8b69f627b9
parentae9fd159b9c2f03dee0be7660bf8039cc57d346c (diff)
downloadshotkey-b765e4811bdc0b570a7a2542cb7d3b1b2e2064f4.tar.gz
shotkey-b765e4811bdc0b570a7a2542cb7d3b1b2e2064f4.zip
Fixes warnings
-rw-r--r--shotkey.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/shotkey.c b/shotkey.c
index 7afffa1..a8c5110 100644
--- a/shotkey.c
+++ b/shotkey.c
@@ -22,8 +22,8 @@ typedef struct ModeProperties {
#define NormalMode -1
-#define cmd(c) (Command) { c, NormalMode, False }
-#define mode(m, p) (Command) { NULL, m, p }
+#define cmd(c) { c, NormalMode, False }
+#define mode(m, p) { NULL, m, p }
#include "config.h"
@@ -95,9 +95,6 @@ void set_mode(int mode, unsigned int persist) {
}
void run(Display* dpy, Window win, Command command) {
- Key mode_key;
- unsigned int i;
-
if (command.command) {
char* cmd[] = {shell, "-c", command.command, NULL};
spawn(cmd);