From 1195548be9184695331c6f56ff0af3b95d905f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 28 Oct 2023 16:11:17 +0000 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. --- 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];