aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2018-09-08 12:10:35 +0200
committerkoekeishiya <aasvi93@hotmail.com>2018-09-08 12:10:35 +0200
commite66bfd7ae9c1ccbb3cd88f3ad253f9e2cafaeb8e (patch)
treeeef12b44ef73a154f502d36c23099188c76f3831
parentd9712b3b72db49d8afd214f95d308a1f1261aead (diff)
downloadskhd-e66bfd7ae9c1ccbb3cd88f3ad253f9e2cafaeb8e.tar.gz
skhd-e66bfd7ae9c1ccbb3cd88f3ad253f9e2cafaeb8e.zip
.
-rw-r--r--src/carbon.h.tubin0 -> 14977496 bytes
-rw-r--r--src/event_tap.h.tubin0 -> 14977324 bytes
-rw-r--r--src/hotkey.c2
-rw-r--r--src/hotkey.h2
-rw-r--r--src/locale.c2
-rw-r--r--src/locale.h2
-rw-r--r--src/skhd.c4
7 files changed, 6 insertions, 6 deletions
diff --git a/src/carbon.h.tu b/src/carbon.h.tu
new file mode 100644
index 0000000..69daf6b
--- /dev/null
+++ b/src/carbon.h.tu
Binary files differ
diff --git a/src/event_tap.h.tu b/src/event_tap.h.tu
new file mode 100644
index 0000000..19867fb
--- /dev/null
+++ b/src/event_tap.h.tu
Binary files differ
diff --git a/src/hotkey.c b/src/hotkey.c
index 10d5f5e..0c8b9f0 100644
--- a/src/hotkey.c
+++ b/src/hotkey.c
@@ -283,7 +283,7 @@ bool intercept_systemkey(CGEventRef event, struct hotkey *eventkey)
return result;
}
-void init_shell()
+void init_shell(void)
{
if (!shell) {
char *env_shell = getenv("SHELL");
diff --git a/src/hotkey.h b/src/hotkey.h
index 3b26ac3..71d2e1d 100644
--- a/src/hotkey.h
+++ b/src/hotkey.h
@@ -107,6 +107,6 @@ bool intercept_systemkey(CGEventRef event, struct hotkey *eventkey);
bool find_and_exec_hotkey(struct hotkey *k, struct table *t, struct mode **m, struct carbon_event *carbon);
void free_mode_map(struct table *mode_map);
-void init_shell();
+void init_shell(void);
#endif
diff --git a/src/locale.c b/src/locale.c
index 50cf930..b4c61dc 100644
--- a/src/locale.c
+++ b/src/locale.c
@@ -85,7 +85,7 @@ cfstring_from_keycode(UCKeyboardLayout *keyboard_layout, CGKeyCode keycode)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wint-to-void-pointer-cast"
-bool initialize_keycode_map()
+bool initialize_keycode_map(void)
{
TISInputSourceRef keyboard = TISCopyCurrentASCIICapableKeyboardLayoutInputSource();
CFDataRef uchr = (CFDataRef) TISGetInputSourceProperty(keyboard, kTISPropertyUnicodeKeyLayoutData);
diff --git a/src/locale.h b/src/locale.h
index 653bcfd..d00a72e 100644
--- a/src/locale.h
+++ b/src/locale.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-bool initialize_keycode_map();
+bool initialize_keycode_map(void);
uint32_t keycode_from_char(char key);
#endif
diff --git a/src/skhd.c b/src/skhd.c
index e8a59f3..de73ccd 100644
--- a/src/skhd.c
+++ b/src/skhd.c
@@ -165,7 +165,7 @@ parse_arguments(int argc, char **argv)
}
internal bool
-check_privileges()
+check_privileges(void)
{
bool result;
const void *keys[] = { kAXTrustedCheckOptionPrompt };
@@ -184,7 +184,7 @@ check_privileges()
}
internal void
-use_default_config_path()
+use_default_config_path(void)
{
char *home = getenv("HOME");
if (!home) {