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 <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
tniessen authored and targos committed Nov 14, 2023
1 parent 44f19ce commit 9f55dfc
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 9f55dfc

Please sign in to comment.