summaryrefslogtreecommitdiff
path: root/hscript/disk.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-31 18:38:30 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-31 18:38:30 -0500
commit945f0dd29d9d7b188e01ba27419c043bd0357bbb (patch)
tree30ef08811b1d5e368e38304e6e1f1d49344ca9ef /hscript/disk.cc
parentf1e509603806b71a282c076e4c6ef2c632761cd9 (diff)
downloadhorizon-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/disk.cc')
-rw-r--r--hscript/disk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc
index ecd0afa..05fb6d2 100644
--- a/hscript/disk.cc
+++ b/hscript/disk.cc
@@ -60,7 +60,7 @@ bool is_block_device(const std::string &key, long line,
Key *DiskId::parseFromData(const std::string &data, int lineno, int *errors,
- int *warnings) {
+ int *) {
std::string block, ident;
std::string::size_type block_end = data.find_first_of(' ');
if(block_end == std::string::npos) {
@@ -139,7 +139,7 @@ bool DiskId::execute(ScriptOptions options) const {
Key *DiskLabel::parseFromData(const std::string &data, int lineno, int *errors,
- int *warnings) {
+ int *) {
std::string block, label;
std::string::size_type sep = data.find_first_of(' ');
LabelType type;
@@ -660,7 +660,7 @@ bool Filesystem::execute(ScriptOptions) const {
Key *Mount::parseFromData(const std::string &data, int lineno, int *errors,
- int *warnings) {
+ int *) {
std::string dev, where, opt;
std::string::size_type where_pos, opt_pos;
bool any_failure = false;