svn commit: r229699 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Jan 6 12:27:18 UTC 2012
Author: pjd
Date: Fri Jan 6 12:27:17 2012
New Revision: 229699
URL: http://svn.freebsd.org/changeset/base/229699
Log:
Constify argument.
MFC after: 3 days
Modified:
head/sbin/hastd/subr.c
head/sbin/hastd/subr.h
Modified: head/sbin/hastd/subr.c
==============================================================================
--- head/sbin/hastd/subr.c Fri Jan 6 12:05:43 2012 (r229698)
+++ head/sbin/hastd/subr.c Fri Jan 6 12:27:17 2012 (r229699)
@@ -149,7 +149,7 @@ role2str(int role)
}
int
-drop_privs(struct hast_resource *res)
+drop_privs(const struct hast_resource *res)
{
char jailhost[sizeof(res->hr_name) * 2];
struct jail jailst;
Modified: head/sbin/hastd/subr.h
==============================================================================
--- head/sbin/hastd/subr.h Fri Jan 6 12:05:43 2012 (r229698)
+++ head/sbin/hastd/subr.h Fri Jan 6 12:27:17 2012 (r229699)
@@ -51,6 +51,6 @@ int snprlcat(char *str, size_t size, con
int provinfo(struct hast_resource *res, bool dowrite);
const char *role2str(int role);
-int drop_privs(struct hast_resource *res);
+int drop_privs(const struct hast_resource *res);
#endif /* !_SUBR_H_ */
More information about the svn-src-all
mailing list