From a272071bf05251d395303fa3d1691da8080c3540 Mon Sep 17 00:00:00 2001 From: pjd Date: Fri, 6 Jan 2012 12:27:17 +0000 Subject: Constify argument. MFC after: 3 days --- sbin/hastd/subr.c | 2 +- sbin/hastd/subr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/hastd') diff --git a/sbin/hastd/subr.c b/sbin/hastd/subr.c index 45218bb..b8ee389 100644 --- a/sbin/hastd/subr.c +++ b/sbin/hastd/subr.c @@ -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; diff --git a/sbin/hastd/subr.h b/sbin/hastd/subr.h index e76930a..c765754 100644 --- a/sbin/hastd/subr.h +++ b/sbin/hastd/subr.h @@ -51,6 +51,6 @@ int snprlcat(char *str, size_t size, const char *fmt, ...); 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_ */ -- cgit v1.1