From 6424f1a07bb47bbc33856e376ac6e39166805dba Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Fri, 22 Dec 2017 22:13:10 +0100 Subject: [PATCH] Make run static to not export it This enforces to call wake_up in other files and not run(NULL). --- src/dunst.c | 3 ++- src/dunst.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dunst.c b/src/dunst.c index 6cf2fca..38c8957 100644 --- a/src/dunst.c +++ b/src/dunst.c @@ -42,13 +42,14 @@ GMainLoop *mainloop = NULL; GSList *rules = NULL; /* misc funtions */ +static gboolean run(void *data); void wake_up(void) { run(NULL); } -gboolean run(void *data) +static gboolean run(void *data) { queues_check_timeouts(x_is_idle()); queues_update(); diff --git a/src/dunst.h b/src/dunst.h index d950b8f..cdb6874 100644 --- a/src/dunst.h +++ b/src/dunst.h @@ -19,7 +19,6 @@ extern GSList *rules; extern const char *colors[3][3]; -gboolean run(void *data); void wake_up(void); int dunst_main(int argc, char *argv[]);