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 Michaël Zasso committed 2023-11-14 09:17:47 +01:00
1 parent 44f19ce394
commit 9f55dfc266
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];