Constify arguments.
This commit is contained in:
parent
fad901eb2b
commit
9de091f2ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229951
@ -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_
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user