summaryrefslogtreecommitdiff
path: root/src/fs_event
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-24 13:15:29 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-24 13:15:29 -0400
commit082db391349f08c435ea22b8643c8c8f7c2e429d (patch)
treee5323e3fd4e9b7c3526b2e7aea9f14f5e1248ab7 /src/fs_event
parentb8abe660fab174d37f8f49142f2261e93f463527 (diff)
downloadlibnaunet-082db391349f08c435ea22b8643c8c8f7c2e429d.tar.gz
libnaunet-082db391349f08c435ea22b8643c8c8f7c2e429d.tar.bz2
libnaunet-082db391349f08c435ea22b8643c8c8f7c2e429d.zip
Add packet_cache_flush() and thread canceltype
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fs_event')
-rw-r--r--src/fs_event/fs_event_inotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs_event/fs_event_inotify.c b/src/fs_event/fs_event_inotify.c
index 0fc19b4..0c0dd01 100644
--- a/src/fs_event/fs_event_inotify.c
+++ b/src/fs_event/fs_event_inotify.c
@@ -24,10 +24,10 @@ void aki_fs_event_init(struct aki_fs_event *fs, str *path, u32 mask,
{
fs->fd = inotify_init();
aki_fd_set_blocking(fs->fd, true);
+ fs->path = al_str_to_c_str(path);
fs->mask = mask;
fs->callback = callback;
fs->userdata = userdata;
- fs->path = al_str_to_c_str(path);
fs->event.data = fs;
ev_io_init(&fs->event, event_callback, fs->fd, EV_READ);
}