svn commit: r247751 - head/sbin/devd
Eitan Adler
eadler at FreeBSD.org
Mon Mar 4 02:19:56 UTC 2013
Author: eadler
Date: Mon Mar 4 02:19:55 2013
New Revision: 247751
URL: http://svnweb.freebsd.org/changeset/base/247751
Log:
Constify where possible.
Approved by: cperciva (mentor)
Modified:
head/sbin/devd/devd.cc
head/sbin/devd/devd.hh
Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc Mon Mar 4 01:56:00 2013 (r247750)
+++ head/sbin/devd/devd.cc Mon Mar 4 02:19:55 2013 (r247751)
@@ -653,7 +653,7 @@ config::expand_string(const char *src, c
}
bool
-config::chop_var(char *&buffer, char *&lhs, char *&rhs)
+config::chop_var(char *&buffer, char *&lhs, char *&rhs) const
{
char *walker;
Modified: head/sbin/devd/devd.hh
==============================================================================
--- head/sbin/devd/devd.hh Mon Mar 4 01:56:00 2013 (r247750)
+++ head/sbin/devd/devd.hh Mon Mar 4 02:19:55 2013 (r247751)
@@ -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;
More information about the svn-src-head
mailing list