Make run static to not export it

This enforces to call wake_up in other files and not run(NULL).
This commit is contained in:
Benedikt Heine 2017-12-22 22:13:10 +01:00
parent 4908a75a89
commit 6424f1a07b
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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[]);