summaryrefslogtreecommitdiff
path: root/src/dged/reactor-kqueue.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2025-10-15 17:13:05 +0200
committerAlbert Cervin <albert@acervin.com>2025-10-17 12:21:04 +0200
commit4689f3f38277bb64981fc960e8e384e2d065d659 (patch)
treefd6cbb8e91aedf04daa1698c1e5909d8547cb050 /src/dged/reactor-kqueue.c
parent186374797aa883de9c4ac49d428af8dca000d2ed (diff)
downloaddged-4689f3f38277bb64981fc960e8e384e2d065d659.tar.gz
dged-4689f3f38277bb64981fc960e8e384e2d065d659.tar.xz
dged-4689f3f38277bb64981fc960e8e384e2d065d659.zip
Make it work again on OpenBSDopenbsd-fixes
- Some unused variables - Fix zero window size under lldb - Make instantiation of languages more robust
Diffstat (limited to 'src/dged/reactor-kqueue.c')
-rw-r--r--src/dged/reactor-kqueue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dged/reactor-kqueue.c b/src/dged/reactor-kqueue.c
index f30cb9a..d370653 100644
--- a/src/dged/reactor-kqueue.c
+++ b/src/dged/reactor-kqueue.c
@@ -81,6 +81,7 @@ uint32_t reactor_register_interest(struct reactor *reactor, int fd,
uint32_t reactor_watch_file(struct reactor *reactor, const char *path,
uint32_t mask) {
+ (void)mask;
uint32_t fflags = NOTE_WRITE | NOTE_DELETE | NOTE_RENAME | NOTE_REVOKE;
int fd = open(path, O_RDONLY);
if (fd < 0) {
@@ -99,6 +100,7 @@ uint32_t reactor_watch_file(struct reactor *reactor, const char *path,
}
void reactor_unwatch_file(struct reactor *reactor, uint32_t id) {
+ (void)reactor;
// all kevents for this fd are removed automatically when closed
close(id);
}