Constify arguments.

This commit is contained in:
Pawel Jakub Dawidek 2012-01-11 00:31:04 +00:00
parent fad901eb2b
commit 9de091f2ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229951
2 changed files with 3 additions and 3 deletions

View File

@ -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_

View File

@ -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) {