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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Tobias Nießen authored and Ulises Gascón committed 2023-12-11 11:12:11 +00:00
1 parent d1b6bd660a
commit 23f830616b
1 file changed
+1 -1
+1 -1
View File
@@ -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];