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.

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]>
  • Loading branch information
tniessen committed Oct 30, 2023
1 parent 63494a9 commit efe4540
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 efe4540

Please sign in to comment.