Skip to content

Commit

Permalink
Reformat some files
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmco committed Jan 16, 2025
1 parent 89de020 commit d923424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ void Network::setAddress(const std::string& ip)

address Network::fetchAddress(const std::string& interface)
{
struct in_addr addr { };
struct in_addr netmask { };
struct in_addr network { };
struct in_addr addr {};
struct in_addr netmask {};
struct in_addr network {};

if (inet_aton(
Connection::fetchAddress(interface).to_string().c_str(), &addr)
Expand Down Expand Up @@ -208,8 +208,8 @@ address Network::calculateAddress(const address& connectionAddress)
"calculate the address"));
}

struct in_addr ip_addr { };
struct in_addr subnet_addr { };
struct in_addr ip_addr {};
struct in_addr subnet_addr {};

inet_aton(connectionAddress.to_string().c_str(), &ip_addr);
inet_aton(m_subnetMask.to_string().c_str(), &subnet_addr);
Expand Down
6 changes: 3 additions & 3 deletions src/services/xcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ void XCAT::patchInstall()
void XCAT::setup()
{
setDHCPInterfaces(m_cluster->getHeadnode()
.getConnection(Network::Profile::Management)
.getInterface()
.value());
.getConnection(Network::Profile::Management)
.getInterface()
.value());
setDomain(m_cluster->getDomainName());
}

Expand Down

0 comments on commit d923424

Please sign in to comment.