]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/error_code: remove unused includes
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 4 Oct 2024 12:43:27 +0000 (14:43 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 4 Nov 2024 21:31:06 +0000 (22:31 +0100)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/common/error_code.cc
src/common/error_code.h

index ed0e681b22bf806815c3402f6242f610f8ddb043..9c981a2107745d31f7b08035dfa42322eefe8bb1 100644 (file)
  * COPYING.
  */
 
-#include <exception>
+#include "common/error_code.h"
 
 #include <boost/asio/error.hpp>
-#include "common/error_code.h"
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
index e39122f8ce3115ddeee1df44725e710637780451..93a1bf31c0085ed2ccb2ae7848d870f225ad681d 100644 (file)
@@ -16,9 +16,8 @@
 #ifndef COMMON_CEPH_ERROR_CODE
 #define COMMON_CEPH_ERROR_CODE
 
-#include <netdb.h>
-
-#include <boost/system.hpp>
+#include <boost/system/error_code.hpp>
+#include <boost/system/system_error.hpp>
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"