diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-09-08 12:10:35 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-09-08 12:10:35 +0200 |
commit | e66bfd7ae9c1ccbb3cd88f3ad253f9e2cafaeb8e (patch) | |
tree | eef12b44ef73a154f502d36c23099188c76f3831 /src | |
parent | d9712b3b72db49d8afd214f95d308a1f1261aead (diff) | |
download | skhd-e66bfd7ae9c1ccbb3cd88f3ad253f9e2cafaeb8e.tar.gz skhd-e66bfd7ae9c1ccbb3cd88f3ad253f9e2cafaeb8e.zip |
.
Diffstat (limited to 'src')
-rw-r--r-- | src/carbon.h.tu | bin | 0 -> 14977496 bytes | |||
-rw-r--r-- | src/event_tap.h.tu | bin | 0 -> 14977324 bytes | |||
-rw-r--r-- | src/hotkey.c | 2 | ||||
-rw-r--r-- | src/hotkey.h | 2 | ||||
-rw-r--r-- | src/locale.c | 2 | ||||
-rw-r--r-- | src/locale.h | 2 | ||||
-rw-r--r-- | src/skhd.c | 4 |
7 files changed, 6 insertions, 6 deletions
diff --git a/src/carbon.h.tu b/src/carbon.h.tu Binary files differnew file mode 100644 index 0000000..69daf6b --- /dev/null +++ b/src/carbon.h.tu diff --git a/src/event_tap.h.tu b/src/event_tap.h.tu Binary files differnew file mode 100644 index 0000000..19867fb --- /dev/null +++ b/src/event_tap.h.tu 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 @@ -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) { |