svn commit: r333956 - head/usr.bin/top

Eitan Adler eadler at FreeBSD.org
Mon May 21 01:39:27 UTC 2018


Author: eadler
Date: Mon May 21 01:39:26 2018
New Revision: 333956
URL: https://svnweb.freebsd.org/changeset/base/333956

Log:
  top(1): fix build on arches where size_t != ull

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

Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c	Mon May 21 01:20:19 2018	(r333955)
+++ head/usr.bin/top/machine.c	Mon May 21 01:39:26 2018	(r333956)
@@ -993,7 +993,7 @@ format_next_process(caddr_t xhandle, char *(*get_useri
 		    state < sizeof(state_abbrev) / sizeof(*state_abbrev))
 			sprintf(status, "%.6s", state_abbrev[state]);
 		else
-			sprintf(status, "?%5lu", state);
+			sprintf(status, "?%5zu", state);
 		break;
 	}
 


More information about the svn-src-head mailing list