Skip to content

Commit 8757799

Browse files
danbevMylesBorins
authored andcommitted
src: remove unused stdlib.h include
Commit 870229e ("src: Add ABORT macro") replaced the abort call with the abort macro in util-inl.h. This commit removes the include as it is not needed anymore. PR-URL: #19427 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent e3ce084 commit 8757799

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

src/cares_wrap.cc

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "uv.h"
3030

3131
#include <errno.h>
32-
#include <stdlib.h>
3332
#include <string.h>
3433
#include <vector>
3534
#include <unordered_set>

src/fs_event_wrap.cc

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "handle_wrap.h"
2727
#include "string_bytes.h"
2828

29-
#include <stdlib.h>
3029

3130
namespace node {
3231

src/node_crypto.cc

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include <errno.h>
4747
#include <limits.h> // INT_MAX
4848
#include <math.h>
49-
#include <stdlib.h>
5049
#include <string.h>
5150

5251
#include <algorithm>

src/spawn_sync.cc

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "util.h"
2626

2727
#include <string.h>
28-
#include <stdlib.h>
2928

3029

3130
namespace node {

src/stream_wrap.cc

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "udp_wrap.h"
3333
#include "util-inl.h"
3434

35-
#include <stdlib.h> // abort()
3635
#include <string.h> // memcpy()
3736
#include <limits.h> // INT_MAX
3837

src/udp_wrap.cc

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "req_wrap-inl.h"
2727
#include "util-inl.h"
2828

29-
#include <stdlib.h>
3029

3130

3231
namespace node {

0 commit comments

Comments
 (0)