summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-23 08:27:14 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit4c6d5bc38f16d11f19a847c9ff7453a7659ee876 (patch)
treee79b7fe620a07e34255d247c01929f7f038355e7
parentb25b2a67797b33975179e17c97baba19bbf020ab (diff)
Prep v239: Unmask inotify_add_watch_fd()
-rw-r--r--src/basic/fs-util.c2
-rw-r--r--src/basic/fs-util.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index a82d3a14e..562fe8277 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -589,7 +589,6 @@ int unlink_or_warn(const char *filename) {
return 0;
}
-#if 0 /// UNNEEDED by elogind
int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
char path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
int r;
@@ -603,7 +602,6 @@ int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
return r;
}
-#endif // 0
static bool safe_transition(const struct stat *a, const struct stat *b) {
/* Returns true if the transition from a to b is safe, i.e. that we never transition from unprivileged to
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
index 940853f42..c7d831f50 100644
--- a/src/basic/fs-util.h
+++ b/src/basic/fs-util.h
@@ -76,9 +76,7 @@ union inotify_event_buffer {
uint8_t raw[INOTIFY_EVENT_MAX];
};
-#if 0 /// UNNEEDED by elogind
int inotify_add_watch_fd(int fd, int what, uint32_t mask);
-#endif // 0
enum {
CHASE_PREFIX_ROOT = 1 << 0, /* If set, the specified path will be prefixed by the specified root before beginning the iteration */