From ff8f00afc858d2f9979966a36e90278e6aaae517 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 10 May 2018 15:42:48 +0200 Subject: #15 cleanup code --- src/skhd.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/skhd.c') diff --git a/src/skhd.c b/src/skhd.c index 7250ba5..5056507 100644 --- a/src/skhd.c +++ b/src/skhd.c @@ -6,13 +6,11 @@ #include #include #include - #include #define HASHTABLE_IMPLEMENTATION #include "hashtable.h" #include "sbuffer.h" - #include "hotload.h" #include "event_tap.h" #include "locale.h" @@ -46,8 +44,8 @@ extern bool CGSIsSecureEventInputSet(); internal unsigned major_version = 0; internal unsigned minor_version = 0; internal unsigned patch_version = 14; -internal struct table mode_map; internal struct mode *current_mode; +internal struct table mode_map; internal char *config_file; internal void @@ -198,11 +196,8 @@ int main(int argc, char **argv) set_config_path(); } - table_init(&mode_map, 13, - (table_hash_func) hash_mode, - (table_compare_func) same_mode); - printf("skhd: using config '%s'\n", config_file); + table_init(&mode_map, 13, (table_hash_func) hash_mode, (table_compare_func) same_mode); parse_config_helper(config_file); signal(SIGCHLD, SIG_IGN); -- cgit v1.2.3