diff options
author | pjd <pjd@FreeBSD.org> | 2012-01-11 00:31:04 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-01-11 00:31:04 +0000 |
commit | 37abda79268d80eed2617d403ce64386743d3e9f (patch) | |
tree | 309c78a0d65a25722c9d3843898fcab1fc8c28d2 | |
parent | 56029d49c5eec83d997194c19eb64d229b883724 (diff) | |
download | FreeBSD-src-37abda79268d80eed2617d403ce64386743d3e9f.zip FreeBSD-src-37abda79268d80eed2617d403ce64386743d3e9f.tar.gz |
Constify arguments.
-rw-r--r-- | lib/libutil/libutil.h | 2 | ||||
-rw-r--r-- | lib/libutil/pidfile.c | 4 |
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) { |