Skip to content

Commit

Permalink
Win compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpanderson committed Oct 28, 2024
1 parent c11966b commit 63ef5f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions client/hostinfo_wsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ int get_wsl_information(WSL_DISTROS &distros) {
// see if distro is disallowed
//
vector<string> &dw = cc_config.disallowed_wsls;
if (std::find(dw.begin(), dw.end(), wd.distro_name,) != dw.end()) {
dw.disallowed = true;
if (std::find(dw.begin(), dw.end(), wd.distro_name) != dw.end()) {
wd.disallowed = true;
}
distros.distros.push_back(wd);
}
Expand Down
6 changes: 1 addition & 5 deletions lib/hostinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,7 @@ class HOST_INFO {
extern void make_secure_random_string(char*);

#ifdef _WIN64
extern int get_wsl_information(
std::vector<std::string> &allowed_wsls,
WSL_DISTROS &usable_distros,
bool detect_docker
);
extern int get_wsl_information(WSL_DISTROS &distros);
extern int get_processor_group(HANDLE);
#endif

Expand Down

0 comments on commit 63ef5f1

Please sign in to comment.