aboutsummaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-01-11 00:31:04 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-01-11 00:31:04 +0000
commit9de091f2efce4f45e2efe2afe054725b3c1dd2e5 (patch)
tree309c78a0d65a25722c9d3843898fcab1fc8c28d2 /lib/libutil
parentfad901eb2b2e04e5041764225e71bd44401bf835 (diff)
downloadsrc-9de091f2efce4f45e2efe2afe054725b3c1dd2e5.tar.gz
src-9de091f2efce4f45e2efe2afe054725b3c1dd2e5.zip
Constify arguments.
Notes
Notes: svn path=/head/; revision=229951
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/libutil.h2
-rw-r--r--lib/libutil/pidfile.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 25ac1dba1213..724150395058 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -170,7 +170,7 @@ struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);
int pidfile_write(struct pidfh *pfh);
int pidfile_close(struct pidfh *pfh);
int pidfile_remove(struct pidfh *pfh);
-int pidfile_fileno(struct pidfh *pfh);
+int pidfile_fileno(const struct pidfh *pfh);
#endif
#ifdef _UFS_UFS_QUOTA_H_
diff --git a/lib/libutil/pidfile.c b/lib/libutil/pidfile.c
index 6bfa3767058d..ba9575678b2b 100644
--- a/lib/libutil/pidfile.c
+++ b/lib/libutil/pidfile.c
@@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$");
static int _pidfile_remove(struct pidfh *pfh, int freeit);
static int
-pidfile_verify(struct pidfh *pfh)
+pidfile_verify(const struct pidfh *pfh)
{
struct stat sb;
@@ -268,7 +268,7 @@ pidfile_remove(struct pidfh *pfh)
}
int
-pidfile_fileno(struct pidfh *pfh)
+pidfile_fileno(const struct pidfh *pfh)
{
if (pfh == NULL || pfh->pf_fd == -1) {