Skip to content

Commit 23f8306

Browse files
tniessenUlisesGascon
authored andcommitted
src: hide node::credentials::HasOnly outside unit
The function is not declared anywhere else and should not be visible outside the compilation unit. PR-URL: #50450 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent d1b6bd6 commit 23f8306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_credentials.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace credentials {
4949

5050
#if defined(__linux__)
5151
// Returns true if the current process only has the passed-in capability.
52-
bool HasOnly(int capability) {
52+
static bool HasOnly(int capability) {
5353
DCHECK(cap_valid(capability));
5454

5555
struct __user_cap_data_struct cap_data[2];

0 commit comments

Comments
 (0)