Commit e81bb5d8 authored by Max Kellermann's avatar Max Kellermann

db/update/Inotify*: include cleanup

parent 32f4f158
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
#include "system/Error.hxx" #include "system/Error.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <cerrno>
#include <climits>
#include <cstdint>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <limits.h>
bool bool
InotifySource::OnSocketReady(gcc_unused unsigned flags) noexcept InotifySource::OnSocketReady(gcc_unused unsigned flags) noexcept
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#define MPD_INOTIFY_SOURCE_HXX #define MPD_INOTIFY_SOURCE_HXX
#include "event/SocketMonitor.hxx" #include "event/SocketMonitor.hxx"
#include "util/Compiler.h"
class FileDescriptor;
typedef void (*mpd_inotify_callback_t)(int wd, unsigned mask, typedef void (*mpd_inotify_callback_t)(int wd, unsigned mask,
const char *name, void *ctx); const char *name, void *ctx);
......
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
#include "fs/Traits.hxx" #include "fs/Traits.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <string> #include <cassert>
#include <map> #include <cstring>
#include <forward_list> #include <forward_list>
#include <map>
#include <string>
#include <assert.h>
#include <sys/inotify.h> #include <sys/inotify.h>
#include <string.h>
#include <dirent.h> #include <dirent.h>
static constexpr unsigned IN_MASK = static constexpr unsigned IN_MASK =
...@@ -148,7 +148,7 @@ WatchDirectory::GetUriFS() const noexcept ...@@ -148,7 +148,7 @@ WatchDirectory::GetUriFS() const noexcept
static bool skip_path(const char *path) static bool skip_path(const char *path)
{ {
return PathTraitsFS::IsSpecialFilename(path) || return PathTraitsFS::IsSpecialFilename(path) ||
strchr(path, '\n') != nullptr; std::strchr(path, '\n') != nullptr;
} }
static void static void
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#ifndef MPD_INOTIFY_UPDATE_HXX #ifndef MPD_INOTIFY_UPDATE_HXX
#define MPD_INOTIFY_UPDATE_HXX #define MPD_INOTIFY_UPDATE_HXX
#include "util/Compiler.h"
class EventLoop; class EventLoop;
class Storage; class Storage;
class UpdateService; class UpdateService;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment