sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit f013d17561d264172bb7ed120bfd9faa4e5db3a2
parent 2d484d0c9aa9b0a58042563acf3189592c3b2aec
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Fri, 20 Sep 2013 12:04:53 +0200

Remove a few useless header inclusions

Diffstat:
MSourcedeps | 2+-
Mgrab.c | 1-
Mhelpers.c | 4+---
Mparse.c | 2--
Msxhkd.c | 6------
Mtypes.c | 2+-
6 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/Sourcedeps b/Sourcedeps @@ -1,5 +1,5 @@ grab.o: grab.c grab.h helpers.h parse.h sxhkd.h types.h helpers.o: helpers.c helpers.h sxhkd.h types.h -parse.o: parse.c helpers.h locales.h parse.h sxhkd.h types.h +parse.o: parse.c helpers.h parse.h sxhkd.h types.h sxhkd.o: sxhkd.c grab.h helpers.h parse.h sxhkd.h types.h types.o: types.c grab.h helpers.h parse.h sxhkd.h types.h diff --git a/grab.c b/grab.c @@ -1,5 +1,4 @@ #include <stdlib.h> -#include "types.h" #include "parse.h" #include "grab.h" diff --git a/helpers.c b/helpers.c @@ -4,11 +4,9 @@ #include <string.h> #include <unistd.h> #include <ctype.h> -#include <fcntl.h> -#include <errno.h> #include <sys/wait.h> -#include "helpers.h" #include "sxhkd.h" +#include "helpers.h" void warn(char *fmt, ...) { diff --git a/parse.c b/parse.c @@ -2,8 +2,6 @@ #include <string.h> #include <inttypes.h> #include <ctype.h> -#include "locales.h" -#include "types.h" #include "parse.h" keysym_dict_t nks_dict[] = {/*{{{*/ diff --git a/sxhkd.c b/sxhkd.c @@ -1,19 +1,13 @@ -#include <xcb/xcb_keysyms.h> #include <xcb/xcb_event.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/stat.h> -#include <sys/wait.h> #include <sys/select.h> #include <fcntl.h> -#include <ctype.h> -#include <getopt.h> #include <signal.h> #include <stdbool.h> -#include "helpers.h" -#include "types.h" #include "parse.h" #include "grab.h" #include "sxhkd.h" diff --git a/types.c b/types.c @@ -2,9 +2,9 @@ #include <string.h> #include <stdbool.h> #include <unistd.h> -#include "types.h" #include "parse.h" #include "grab.h" +#include "types.h" hotkey_t *find_hotkey(xcb_keysym_t keysym, xcb_button_t button, uint16_t modfield, uint8_t event_type, bool *replay_event) {