summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-04-16 21:10:17 +0300
committerEd Tanous <ed@tanous.net>2024-04-19 21:53:34 +0300
commit5b90429a75c58797ec29ac9a8ed18c2dcd7d4950 (patch)
treecd7bbbe751cb9eef3bdf51abf372d1790aadce24 /src
parent211cfa49d10cb251b6504bacb13d8e87b4d9c1e4 (diff)
downloadbmcweb-5b90429a75c58797ec29ac9a8ed18c2dcd7d4950.tar.xz
Add missing headers
Most of these were found by breaking every redfish class handler into its own compile unit: When that's done, these missing headers become compile errors. We should just fix them. In addition, this allows us to enable automatic header checking in clang-tidy using misc-header-cleaner. Because the compiler can now "see" all the defines, it no longer tries to remove headers that it thinks are unused. [1] https://github.com/openbmc/bmcweb/commit/4fdee9e39e9f03122ee16a6fb251a380681f56ac Tested: Code compiles. Change-Id: Ifa27ac4a512362b7ded7cc3068648dc4aea6ad7b Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'src')
-rw-r--r--src/webserver_main.cpp2
-rw-r--r--src/webserver_run.cpp7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index ee752b0239..c7c7fb479a 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -4,8 +4,6 @@
#include "webserver_run.hpp"
#include <exception>
-#include <memory>
-#include <string>
int main(int /*argc*/, char** /*argv*/)
{
diff --git a/src/webserver_run.cpp b/src/webserver_run.cpp
index 3c1c615539..bb037232aa 100644
--- a/src/webserver_run.cpp
+++ b/src/webserver_run.cpp
@@ -12,22 +12,21 @@
#include "ibm/management_console_rest.hpp"
#include "image_upload.hpp"
#include "kvm_websocket.hpp"
+#include "logging.hpp"
#include "login_routes.hpp"
#include "nbd_proxy.hpp"
#include "obmc_console.hpp"
#include "openbmc_dbus_rest.hpp"
#include "redfish.hpp"
#include "redfish_aggregator.hpp"
-#include "security_headers.hpp"
-#include "ssl_key_handler.hpp"
#include "user_monitor.hpp"
#include "vm_websocket.hpp"
#include "webassets.hpp"
#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/connection.hpp>
-#include <sdbusplus/bus.hpp>
-#include <sdbusplus/server.hpp>
+
+#include <memory>
int run()
{