summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-01-11 00:31:04 +0000
committerpjd <pjd@FreeBSD.org>2012-01-11 00:31:04 +0000
commit37abda79268d80eed2617d403ce64386743d3e9f (patch)
tree309c78a0d65a25722c9d3843898fcab1fc8c28d2 /lib/libutil
parent56029d49c5eec83d997194c19eb64d229b883724 (diff)
downloadFreeBSD-src-37abda79268d80eed2617d403ce64386743d3e9f.zip
FreeBSD-src-37abda79268d80eed2617d403ce64386743d3e9f.tar.gz
Constify arguments.
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 25ac1db..7241503 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 6bfa376..ba95756 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) {
OpenPOWER on IntegriCloud