Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2018 05:27:01 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334604 - head/usr.bin/top
Message-ID:  <201806040527.w545R1UA075420@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Jun  4 05:27:00 2018
New Revision: 334604
URL: https://svnweb.freebsd.org/changeset/base/334604

Log:
  top(1): some nitpicks
  
  - prefer fully spelled names to "u_long"
  - fix speeling

Modified:
  head/usr.bin/top/commands.c
  head/usr.bin/top/machine.c

Modified: head/usr.bin/top/commands.c
==============================================================================
--- head/usr.bin/top/commands.c	Mon Jun  4 05:23:06 2018	(r334603)
+++ head/usr.bin/top/commands.c	Mon Jun  4 05:27:00 2018	(r334604)
@@ -64,7 +64,7 @@ These single-character commands are available:\n\
 q       - quit\n\
 h or ?  - help; show this text\n", stdout);
 
-    /* not all commands are availalbe with overstrike terminals */
+    /* not all commands are available with overstrike terminals */
     if (overstrike)
     {
 	fputs("\n\

Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c	Mon Jun  4 05:23:06 2018	(r334603)
+++ head/usr.bin/top/machine.c	Mon Jun  4 05:27:00 2018	(r334604)
@@ -235,7 +235,7 @@ static const char *ordernames[] = {
 static int maxcpu;
 static int maxid;
 static int ncpus;
-static u_long cpumask;
+static unsigned long cpumask;
 static long *times;
 static long *pcpu_cp_time;
 static long *pcpu_cp_old;
@@ -1616,7 +1616,7 @@ swapmode(int *retavail, int *retfree)
 	int n;
 	struct kvm_swap swapary[1];
 	static int pagesize = 0;
-	static u_long swap_maxpages = 0;
+	static unsigned long swap_maxpages = 0;
 
 	*retavail = 0;
 	*retfree = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806040527.w545R1UA075420>