iwyu
This changes uses its best effort to clean up headers according to iwyu.
Reference:
https://include-what-you-use.org/
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: Ibd8bd8735238d6ec101a2428241bb1727e3ac9a9
diff --git a/watch.cpp b/watch.cpp
index caf8ce5..a39d492 100644
--- a/watch.cpp
+++ b/watch.cpp
@@ -1,12 +1,19 @@
#include "watch.hpp"
+#include <sys/epoll.h>
#include <sys/inotify.h>
#include <unistd.h>
+#include <array>
+#include <cerrno>
+#include <climits>
+#include <cstdint>
#include <cstring>
#include <filesystem>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/elog.hpp>
+#include <phosphor-logging/log.hpp>
+#include <sdeventplus/source/io.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
namespace phosphor::certs
@@ -20,7 +27,7 @@
namespace fs = std::filesystem;
Watch::Watch(sdeventplus::Event& event, std::string& certFile, Callback cb) :
- event(event), callback(cb)
+ event(event), callback(std::move(cb))
{
// get parent directory of certificate file to watch
fs::path path = fs::path(certFile).parent_path();