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 UlisesGascon committed Dec 11, 2023
1 parent d1b6bd6 commit 23f8306
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 23f8306

Please sign in to comment.