summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSven Willner <sven.willner@gmail.com>2017-09-01 18:16:45 +0200
committerSven Willner <sven.willner@gmail.com>2017-09-01 18:16:45 +0200
commitf5ce98d3f379a810103e37fa36baf241668387f1 (patch)
tree765a537f16b0cfd7b91bc54aaa14840a8949d9f3 /src/main.c
parent177cbff6af7b9845d592fb0497464d70ee423418 (diff)
changed option from inotify to auto-reload
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index e8c30e2..b935e53 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,10 +59,10 @@ int main(int argc, char **argv)
init_keyevents();
init_buttonbindings();
#ifdef HAVE_INOTIFY
- if (opt.inotify) {
+ if (opt.auto_reload) {
opt.inotify_fd = inotify_init();
if (opt.inotify_fd < 0) {
- opt.inotify = 0;
+ opt.auto_reload = 0;
eprintf("inotify_init failed");
}
}
@@ -162,7 +162,7 @@ int feh_main_iteration(int block)
if (control_via_stdin)
FD_SET(STDIN_FILENO, &fdset);
#ifdef HAVE_INOTIFY
- if (opt.inotify) {
+ if (opt.auto_reload) {
FD_SET(opt.inotify_fd, &fdset);
if (opt.inotify_fd >= fdsize)
fdsize = opt.inotify_fd + 1;
@@ -250,7 +250,7 @@ void feh_clean_exit(void)
free(opt.menu_font);
#ifdef HAVE_INOTIFY
- if (opt.inotify)
+ if (opt.auto_reload)
if (close(opt.inotify_fd))
eprintf("inotify close failed");
#endif