Skip to content

Commit

Permalink
try to fix format and apple's compile
Browse files Browse the repository at this point in the history
  • Loading branch information
MRsoymilk committed Oct 14, 2024
1 parent 85457e6 commit d9bde8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/apple/network.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include <hwinfo/platform.h>

#ifdef HWINFO_APPLE
#include <hwinfo/network.h>

#include <vector>
namespace hwinfo {
std::vector<Network> getAllNetworks() {
Expand Down
2 changes: 1 addition & 1 deletion src/linux/os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ OS::OS() {
}
}
{ // architecture
struct stat buffer{};
struct stat buffer {};
_64bit = stat("/lib64/ld-linux-x86-64.so.2", &buffer) == 0;
_32bit = !_64bit;
}
Expand Down
2 changes: 1 addition & 1 deletion src/linux/utils/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace hwinfo {
namespace filesystem {

bool exists(const std::string& path) {
struct stat sb{};
struct stat sb {};
return stat(path.c_str(), &sb) == 0;
}

Expand Down

0 comments on commit d9bde8a

Please sign in to comment.