summaryrefslogtreecommitdiffstats
path: root/bin/ps/nlist.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-02-03 14:43:04 +0000
committermarkm <markm@FreeBSD.org>2002-02-03 14:43:04 +0000
commitaa05461c142ad4066a0a15602416ba40936a61c9 (patch)
tree7d38defe5cb3081da17d7b6c01870764bc1cc69a /bin/ps/nlist.c
parent792e9550ac5bdc8f338e9d340053549aa3aae463 (diff)
downloadFreeBSD-src-aa05461c142ad4066a0a15602416ba40936a61c9.zip
FreeBSD-src-aa05461c142ad4066a0a15602416ba40936a61c9.tar.gz
WARNS=4 fixes (incomplete, so set NO_WERROR), and lots of extra
cleanup courtesy of automatic checking (lint).
Diffstat (limited to 'bin/ps/nlist.c')
-rw-r--r--bin/ps/nlist.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/ps/nlist.c b/bin/ps/nlist.c
index de91ba3..e97279e 100644
--- a/bin/ps/nlist.c
+++ b/bin/ps/nlist.c
@@ -31,19 +31,23 @@
* SUCH DAMAGE.
*/
-#ifndef lint
+#include <sys/cdefs.h>
+
+__FBSDID("$FreeBSD$");
+
#if 0
+#ifndef lint
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
-#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#endif
#include <sys/types.h>
#include <sys/sysctl.h>
#include <stddef.h>
+#include "ps.h"
+
fixpt_t ccpu; /* kernel _ccpu variable */
int nlistread; /* if nlist already read. */
int mempages; /* number of pages of phys. memory */
OpenPOWER on IntegriCloud