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/user.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/user.cc')
-rw-r--r-- | hscript/user.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hscript/user.cc b/hscript/user.cc index f654db9..f8a46a1 100644 --- a/hscript/user.cc +++ b/hscript/user.cc @@ -120,7 +120,7 @@ static bool string_is_crypt(const std::string &pw, const std::string &key, Key *RootPassphrase::parseFromData(const std::string &data, int lineno, - int *errors, int *warnings) { + int *errors, int *) { if(!string_is_crypt(data, "rootpw", lineno)) { if(errors) *errors += 1; return nullptr; @@ -189,7 +189,7 @@ bool RootPassphrase::execute(ScriptOptions options) const { Key *Username::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { if(!is_valid_name(data.c_str())) { if(errors) *errors += 1; output_error("installfile:" + std::to_string(lineno), @@ -214,7 +214,7 @@ bool Username::execute(ScriptOptions) const { Key *UserAlias::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { /* REQ: Runner.Validate.useralias.Validity */ const std::string::size_type sep = data.find_first_of(' '); if(sep == std::string::npos || data.length() == sep + 1) { @@ -238,7 +238,7 @@ bool UserAlias::execute(ScriptOptions) const { Key *UserPassphrase::parseFromData(const std::string &data, int lineno, - int *errors, int *warnings) { + int *errors, int *) { /* REQ: Runner.Validate.userpw.Validity */ const std::string::size_type sep = data.find_first_of(' '); if(sep == std::string::npos || data.length() == sep + 1) { @@ -269,7 +269,7 @@ bool UserPassphrase::execute(ScriptOptions) const { Key *UserIcon::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { /* REQ: Runner.Validate.usericon.Validity */ const std::string::size_type sep = data.find_first_of(' '); if(sep == std::string::npos || data.length() == sep + 1) { @@ -302,7 +302,7 @@ bool UserIcon::execute(ScriptOptions) const { Key *UserGroups::parseFromData(const std::string &data, int lineno, - int *errors, int *warnings) { + int *errors, int *) { /* REQ: Runner.Validate.usergroups.Validity */ const std::string::size_type sep = data.find_first_of(' '); if(sep == std::string::npos || data.length() == sep + 1) { |