Skip to content

Commit

Permalink
src: hide node::credentials::HasOnly outside unit
Browse files Browse the repository at this point in the history
The function is not declared anywhere else and should not be visible
outside the compilation unit.
  • Loading branch information
tniessen committed Oct 28, 2023
1 parent 14af167 commit 1195548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_credentials.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace credentials {

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

struct __user_cap_data_struct cap_data[2];
Expand Down

0 comments on commit 1195548

Please sign in to comment.