diff options
Diffstat (limited to 'sbin/devd/devd.hh')
-rw-r--r-- | sbin/devd/devd.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/devd/devd.hh b/sbin/devd/devd.hh index 1830dad..3613216 100644 --- a/sbin/devd/devd.hh +++ b/sbin/devd/devd.hh @@ -134,8 +134,8 @@ public: int get_priority() const { return (_prio); } void set_priority(int prio) { _prio = prio; } void add(eps *); - bool matches(config &); - bool run(config &); + bool matches(config &) const; + bool run(config &) const; private: int _prio; std::vector<eps *> _epsvec; @@ -144,7 +144,7 @@ private: class config { public: - config() { _pidfile = ""; push_var_table(); } + config() : _pidfile("") { push_var_table(); } virtual ~config() { reset(); } void add_attach(int, event_proc *); void add_detach(int, event_proc *); @@ -170,7 +170,7 @@ protected: void parse_one_file(const char *fn); void parse_files_in_dir(const char *dirname); void expand_one(const char *&src, std::string &dst); - bool is_id_char(char); + bool is_id_char(char) const; bool chop_var(char *&buffer, char *&lhs, char *&rhs); private: std::vector<std::string> _dir_list; |