svn commit: r183924 - user/edwin/top/top-3.8b1/usr.bin/top

Edwin Groothuis edwin at FreeBSD.org
Wed Oct 15 20:44:00 UTC 2008


Author: edwin
Date: Wed Oct 15 20:44:00 2008
New Revision: 183924
URL: http://svn.freebsd.org/changeset/base/183924

Log:
  Use P_INMEM for >= 7, and PS_INMEM otherwise.
  
  Fix comment about "successfull" at the same time.
  
  Submitted by:	John Baldwin <john at baldwin.cx>, bde@

Modified:
  user/edwin/top/top-3.8b1/usr.bin/top/machine.c

Modified: user/edwin/top/top-3.8b1/usr.bin/top/machine.c
==============================================================================
--- user/edwin/top/top-3.8b1/usr.bin/top/machine.c	Wed Oct 15 19:24:18 2008	(r183923)
+++ user/edwin/top/top-3.8b1/usr.bin/top/machine.c	Wed Oct 15 20:44:00 2008	(r183924)
@@ -737,7 +737,7 @@ fmt_command(char *buf, int sz, struct ki
     char *rawcmd;
     int argc;
 
-#if OSMAJOR > 4
+#if OSMAJOR >= 7
     inmem = (PP(pp, flag) & P_INMEM);
 #else
     inmem = (PP(pp, sflag) & PS_INMEM);
@@ -749,7 +749,8 @@ fmt_command(char *buf, int sz, struct ki
         if ((args = kvm_getargv(kd, pp, sz)) != NULL)
         {
 	    /*
-	     * successfull retrieval: now convert nulls and cr/lf in to spaces
+	     * Successful retrieval.
+	     * Now convert nulls and cr/lf in to spaces.
 	     */
 	    bufp = cmd;
 	    cmd[0] = '\0';


More information about the svn-src-user mailing list