[BACK]Return to vmstat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / vmstat

Diff for /src/usr.bin/vmstat/vmstat.c between version 1.125 and 1.126

version 1.125, 2013/10/31 02:00:11 version 1.126, 2013/11/13 22:26:02
Line 131 
Line 131 
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         char errbuf[_POSIX2_LINE_MAX];          char errbuf[_POSIX2_LINE_MAX];
         int c, todo = 0, reps = 0, mib[2];          int c, todo = 0, reps = 0;
         const char *errstr;          const char *errstr;
         u_int interval = 0;          u_int interval = 0;
         size_t size;  
   
         while ((c = getopt(argc, argv, "c:fiM:mN:stw:vz")) != -1) {          while ((c = getopt(argc, argv, "c:fiM:mN:stw:vz")) != -1) {
                 switch (c) {                  switch (c) {
Line 1018 
Line 1017 
         struct pool pool, *pp = &pool;          struct pool pool, *pp = &pool;
         long total = 0, inuse = 0;          long total = 0, inuse = 0;
         u_long addr;          u_long addr;
         int kmfp;  
   
         kread(X_POOLHEAD, &pool_head, sizeof(pool_head));          kread(X_POOLHEAD, &pool_head, sizeof(pool_head));
         addr = (u_long)SIMPLEQ_FIRST(&pool_head);          addr = (u_long)SIMPLEQ_FIRST(&pool_head);

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.126