svn commit: r298686 - head/usr.bin/top
Marcelo Araujo
araujo at FreeBSD.org
Wed Apr 27 02:44:12 UTC 2016
Author: araujo
Date: Wed Apr 27 02:44:10 2016
New Revision: 298686
URL: https://svnweb.freebsd.org/changeset/base/298686
Log:
Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
Modified:
head/usr.bin/top/machine.c
Modified: head/usr.bin/top/machine.c
==============================================================================
--- head/usr.bin/top/machine.c Wed Apr 27 02:34:25 2016 (r298685)
+++ head/usr.bin/top/machine.c Wed Apr 27 02:44:10 2016 (r298686)
@@ -1023,7 +1023,7 @@ format_next_process(caddr_t handle, char
continue;
len = (argbuflen - (dst - argbuf) - 1) / 4;
strvisx(dst, src,
- strlen(src) < len ? strlen(src) : len,
+ MIN(strlen(src), len),
VIS_NL | VIS_CSTYLE);
while (*dst != '\0')
dst++;
More information about the svn-src-all
mailing list