diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 18:38:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 18:38:30 -0500 |
commit | 945f0dd29d9d7b188e01ba27419c043bd0357bbb (patch) | |
tree | 30ef08811b1d5e368e38304e6e1f1d49344ca9ef /hscript/network.cc | |
parent | f1e509603806b71a282c076e4c6ef2c632761cd9 (diff) | |
download | horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.tar.gz horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.tar.bz2 horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.tar.xz horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.zip |
hscript: Remove unused paramaters and de-const-ify DiskLabel::type
Diffstat (limited to 'hscript/network.cc')
-rw-r--r-- | hscript/network.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hscript/network.cc b/hscript/network.cc index a47e69e..3816415 100644 --- a/hscript/network.cc +++ b/hscript/network.cc @@ -29,7 +29,7 @@ using namespace Horizon::Keys; Key *Network::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { bool value; if(!BooleanKey::parse(data, "installfile:" + std::to_string(lineno), "network", &value)) { @@ -46,7 +46,7 @@ bool Network::execute(ScriptOptions) const { Key *NetAddress::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { long elements = std::count(data.cbegin(), data.cend(), ' ') + 1; std::string::size_type type_pos, addr_pos, prefix_pos, gw_pos, next_end; std::string iface, type, addr, prefix, gw; @@ -304,7 +304,7 @@ bool NetAddress::execute(ScriptOptions) const { Key *NetSSID::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { std::string iface, ssid, secstr, passphrase; SecurityType type; std::string::size_type start, pos, next; |