Skip to content

Commit dcb6c4a

Browse files
committed
common/error_code: remove unused includes
Signed-off-by: Max Kellermann <[email protected]>
1 parent cd95497 commit dcb6c4a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/common/error_code.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
* COPYING.
1414
*/
1515

16-
#include <exception>
16+
#include "common/error_code.h"
1717

1818
#include <boost/asio/error.hpp>
19-
#include "common/error_code.h"
2019

2120
#pragma GCC diagnostic push
2221
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"

src/common/error_code.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
#ifndef COMMON_CEPH_ERROR_CODE
1717
#define COMMON_CEPH_ERROR_CODE
1818

19-
#include <netdb.h>
20-
21-
#include <boost/system.hpp>
19+
#include <boost/system/error_code.hpp>
20+
#include <boost/system/system_error.hpp>
2221

2322
#pragma GCC diagnostic push
2423
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"

0 commit comments

Comments
 (0)