Skip to content

Commit 5a66729

Browse files
Sjorsfanquake
andcommitted
refactor: modernize deprecated ipc headers
Co-authored-by: fanquake <[email protected]>
1 parent 5da4601 commit 5a66729

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ipc/capnp/protocol.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#include <mp/util.h>
1717
#include <util/threadnames.h>
1818

19-
#include <assert.h>
20-
#include <errno.h>
19+
#include <cassert>
20+
#include <cerrno>
2121
#include <future>
2222
#include <memory>
2323
#include <mutex>

src/ipc/interfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
#include <cstdio>
1717
#include <cstdlib>
18+
#include <cstring>
1819
#include <functional>
1920
#include <memory>
2021
#include <stdexcept>
21-
#include <string.h>
2222
#include <string>
2323
#include <unistd.h>
2424
#include <utility>

src/ipc/process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
#include <cstdint>
1515
#include <cstdlib>
16-
#include <errno.h>
16+
#include <cstring>
17+
#include <cerrno>
1718
#include <exception>
1819
#include <iostream>
1920
#include <stdexcept>
20-
#include <string.h>
2121
#include <sys/socket.h>
2222
#include <sys/un.h>
2323
#include <unistd.h>

0 commit comments

Comments
 (0)