Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2018 01:39:27 +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: r333956 - head/usr.bin/top
Message-ID:  <201805210139.w4L1dRc2008911@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 



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