diff options
author | eadler <eadler@FreeBSD.org> | 2013-03-04 02:19:55 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-03-04 02:19:55 +0000 |
commit | 5175512e239622e91230d350a1a2986774b17698 (patch) | |
tree | 940b87de3a5068b48777d11f04a844ccafcd5218 /sbin/devd | |
parent | c3b73942d316ae6fa383dd91712f0e455d5e6d55 (diff) | |
download | FreeBSD-src-5175512e239622e91230d350a1a2986774b17698.zip FreeBSD-src-5175512e239622e91230d350a1a2986774b17698.tar.gz |
Constify where possible.
Approved by: cperciva (mentor)
Diffstat (limited to 'sbin/devd')
-rw-r--r-- | sbin/devd/devd.cc | 2 | ||||
-rw-r--r-- | sbin/devd/devd.hh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 46f3623..0151975 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -653,7 +653,7 @@ config::expand_string(const char *src, const char *prepend, const char *append) } bool -config::chop_var(char *&buffer, char *&lhs, char *&rhs) +config::chop_var(char *&buffer, char *&lhs, char *&rhs) const { char *walker; diff --git a/sbin/devd/devd.hh b/sbin/devd/devd.hh index a48d07b..448a9e4 100644 --- a/sbin/devd/devd.hh +++ b/sbin/devd/devd.hh @@ -172,7 +172,7 @@ protected: void parse_files_in_dir(const char *dirname); void expand_one(const char *&src, std::string &dst); bool is_id_char(char) const; - bool chop_var(char *&buffer, char *&lhs, char *&rhs); + bool chop_var(char *&buffer, char *&lhs, char *&rhs) const; private: std::vector<std::string> _dir_list; std::string _pidfile; |