diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-07-05 22:25:43 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-07-05 22:25:43 +0200 |
commit | dce2bb72a2c2dd75df043c4916ecc575aff6d61c (patch) | |
tree | e8aa6729b6e2ad162a9033ad8ccd3d58584e87d8 /big-brother.c | |
parent | 22e259a6808e39e510a25eaa2b9205e7593612ab (diff) | |
download | desktop-tools-dce2bb72a2c2dd75df043c4916ecc575aff6d61c.tar.gz desktop-tools-dce2bb72a2c2dd75df043c4916ecc575aff6d61c.tar.xz desktop-tools-dce2bb72a2c2dd75df043c4916ecc575aff6d61c.zip |
Bump liberty
Diffstat (limited to 'big-brother.c')
-rw-r--r-- | big-brother.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/big-brother.c b/big-brother.c index c5c9c1a..a3dd0e8 100644 --- a/big-brother.c +++ b/big-brother.c @@ -110,15 +110,14 @@ app_context_init (struct app_context *self) { memset (self, 0, sizeof *self); - str_map_init (&self->config); - self->config.free = free; + self->config = str_map_make (free); simple_config_load_defaults (&self->config, g_config_table); if (!(self->dpy = XOpenDisplay (NULL))) exit_fatal ("cannot open display"); poller_init (&self->poller); - poller_fd_init (&self->x_event, &self->poller, + self->x_event = poller_fd_make (&self->poller, ConnectionNumber (self->dpy)); self->net_active_window = @@ -372,8 +371,8 @@ main (int argc, char *argv[]) { 0, NULL, NULL, 0, NULL } }; - struct opt_handler oh; - opt_handler_init (&oh, argc, argv, opts, NULL, "Activity tracker."); + struct opt_handler oh = + opt_handler_make (argc, argv, opts, NULL, "Activity tracker."); int c; while ((c = opt_handler_get (&oh)) != -1) |