Stop exporting kDefaultPath

This is used only within path.cpp; make it a static.
This commit is contained in:
ridiculousfish 2022-08-21 14:43:28 -07:00
parent 1d0c22b390
commit c260c1259e

View file

@ -26,7 +26,7 @@
#include "wutil.h" // IWYU pragma: keep
// PREFIX is defined at build time.
const wcstring_list_t kDefaultPath({L"/bin", L"/usr/bin", PREFIX L"/bin"});
static const wcstring_list_t kDefaultPath({L"/bin", L"/usr/bin", PREFIX L"/bin"});
static get_path_result_t path_get_path_core(const wcstring &cmd, const wcstring_list_t &pathsv) {
const get_path_result_t noent_res{ENOENT, wcstring{}};