summaryrefslogtreecommitdiff
path: root/hscript/script_i.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-23 20:07:41 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-06-23 20:07:41 -0500
commit6209b9c9f77af5f7ca0618a44bfd0b5955d7d678 (patch)
treedf9b6b5ce94183300a18591e744c45080583e6af /hscript/script_i.hh
parent19d1c74b4c6baabc4b70216e4efc8800044ea4ac (diff)
downloadhorizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.tar.gz
horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.tar.bz2
horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.tar.xz
horizon-6209b9c9f77af5f7ca0618a44bfd0b5955d7d678.zip
hscript: Implement runlevel support in svcenable key
Diffstat (limited to 'hscript/script_i.hh')
-rw-r--r--hscript/script_i.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/script_i.hh b/hscript/script_i.hh
index b223608..abe56ec 100644
--- a/hscript/script_i.hh
+++ b/hscript/script_i.hh
@@ -257,10 +257,10 @@ struct Script::ScriptPrivate {
const ScriptOptions &) {
std::unique_ptr<SvcEnable> svc(dynamic_cast<SvcEnable *>(obj));
for(const auto &s : svcs_enable) {
- if(s->value() == svc->value()) {
+ if(s->service() == svc->service()) {
if(warn) *warn += 1;
output_warning(pos, "svcenable: service already enabled",
- s->value());
+ s->service());
return true;
}
}