From 23f830616bb899d298c19a010e9605be81f6da5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 30 Oct 2023 17:23:56 +0100 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Darshan Sen --- src/node_credentials.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_credentials.cc b/src/node_credentials.cc index 8a832b0e3efb3a..76088144950e49 100644 --- a/src/node_credentials.cc +++ b/src/node_credentials.cc @@ -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];