svn commit: r227584 - projects/jbuild/usr.bin/jbuild/filemon
David E. O'Brien
obrien at FreeBSD.org
Wed Nov 16 20:17:27 UTC 2011
Author: obrien
Date: Wed Nov 16 20:17:26 2011
New Revision: 227584
URL: http://svn.freebsd.org/changeset/base/227584
Log:
KNF.
Modified:
projects/jbuild/usr.bin/jbuild/filemon/filemon.c
projects/jbuild/usr.bin/jbuild/filemon/filemon_wrapper.c
Modified: projects/jbuild/usr.bin/jbuild/filemon/filemon.c
==============================================================================
--- projects/jbuild/usr.bin/jbuild/filemon/filemon.c Wed Nov 16 20:16:21 2011 (r227583)
+++ projects/jbuild/usr.bin/jbuild/filemon/filemon.c Wed Nov 16 20:17:26 2011 (r227584)
@@ -82,21 +82,17 @@ MALLOC_DECLARE(M_FILEMON);
MALLOC_DEFINE(M_FILEMON, "filemon", "File access monitor");
struct filemon {
- pid_t pid; /* The process ID being monitored. */
- char fname1[MAXPATHLEN]; /* Temporary filename buffer. */
- char fname2[MAXPATHLEN]; /* Temporary filename buffer. */
- char msgbufr[1024]; /* Output message buffer. */
- struct file
- *fp; /* Output file pointer. */
- struct thread
- *locker; /* Ptr to the thread locking this */
- /* filemon.*/
- struct mtx
- mtx; /* Lock mutex for this filemon. */
- struct cv
- cv; /* Lock condition variable for this */
- /* filemon. */
TAILQ_ENTRY(filemon) link; /* Link into the in-use list. */
+ struct mtx mtx; /* Lock mutex for this filemon. */
+ struct cv cv; /* Lock condition variable for this
+ filemon. */
+ struct file *fp; /* Output file pointer. */
+ struct thread *locker; /* Ptr to the thread locking this
+ filemon. */
+ pid_t pid; /* The process ID being monitored. */
+ char fname1[MAXPATHLEN]; /* Temporary filename buffer. */
+ char fname2[MAXPATHLEN]; /* Temporary filename buffer. */
+ char msgbufr[1024]; /* Output message buffer. */
};
static TAILQ_HEAD(, filemon) filemons_inuse = TAILQ_HEAD_INITIALIZER(filemons_inuse);
Modified: projects/jbuild/usr.bin/jbuild/filemon/filemon_wrapper.c
==============================================================================
--- projects/jbuild/usr.bin/jbuild/filemon/filemon_wrapper.c Wed Nov 16 20:16:21 2011 (r227583)
+++ projects/jbuild/usr.bin/jbuild/filemon/filemon_wrapper.c Wed Nov 16 20:17:26 2011 (r227584)
@@ -83,7 +83,7 @@ filemon_pid_check(struct proc *p)
if (p->p_pptr == NULL)
return (NULL);
-
+
return (filemon_pid_check(p->p_pptr));
}
More information about the svn-src-projects
mailing list