summaryrefslogtreecommitdiffstats
path: root/sbin/devd
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-03-04 02:19:55 +0000
committereadler <eadler@FreeBSD.org>2013-03-04 02:19:55 +0000
commit5175512e239622e91230d350a1a2986774b17698 (patch)
tree940b87de3a5068b48777d11f04a844ccafcd5218 /sbin/devd
parentc3b73942d316ae6fa383dd91712f0e455d5e6d55 (diff)
downloadFreeBSD-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.cc2
-rw-r--r--sbin/devd/devd.hh2
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;
OpenPOWER on IntegriCloud