diff options
Diffstat (limited to 'src/hooks.c')
-rw-r--r-- | src/hooks.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/hooks.c b/src/hooks.c index cb14f60..1bd3efe 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -16,16 +16,6 @@ Copyright (c) 2014 Jon Lund Steffensen <jonlst@gmail.com> */ - -#include <stdlib.h> -#include <sys/types.h> -#include <dirent.h> -#include <unistd.h> -#include <errno.h> -#ifndef _WIN32 -# include <pwd.h> -#endif - #include "common.h" #define MAX_HOOK_PATH 4096 @@ -71,7 +61,7 @@ open_hooks_dir(char *hp) /* Run hooks with a signal that the period changed. */ void -hooks_signal_period_change(period_t prev_period, period_t period) +hooks_signal_period_change(enum period prev_period, enum period period) { char hooksdir_path[MAX_HOOK_PATH]; DIR *hooks_dir = open_hooks_dir(hooksdir_path); |