svn commit: r229951 - head/lib/libutil

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Jan 11 00:31:04 UTC 2012


Author: pjd
Date: Wed Jan 11 00:31:04 2012
New Revision: 229951
URL: http://svn.freebsd.org/changeset/base/229951

Log:
  Constify arguments.

Modified:
  head/lib/libutil/libutil.h
  head/lib/libutil/pidfile.c

Modified: head/lib/libutil/libutil.h
==============================================================================
--- head/lib/libutil/libutil.h	Wed Jan 11 00:18:33 2012	(r229950)
+++ head/lib/libutil/libutil.h	Wed Jan 11 00:31:04 2012	(r229951)
@@ -170,7 +170,7 @@ struct pidfh *pidfile_open(const char *p
 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_

Modified: head/lib/libutil/pidfile.c
==============================================================================
--- head/lib/libutil/pidfile.c	Wed Jan 11 00:18:33 2012	(r229950)
+++ head/lib/libutil/pidfile.c	Wed Jan 11 00:31:04 2012	(r229951)
@@ -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) {


More information about the svn-src-head mailing list