Eitan Adler eadler at FreeBSD.org wrote on
Mon Jun 11 05:05:22 UTC 2018 :
. . .
> - * positive numbers. If val <= 0 then digits(val) == 0.
> + * non-negative numbers. If val <= 0 then digits(val) == 0.
> */
>
> -int
> +int __pure2
> digits(int val)
> {
> int cnt = 0;
> + if (v
Author: eadler
Date: Mon Jun 11 05:05:20 2018
New Revision: 334941
URL: https://svnweb.freebsd.org/changeset/base/334941
Log:
top(1): handle 0 in "digits" functions
Modified:
head/usr.bin/top/Makefile
head/usr.bin/top/utils.c
Modified: head/usr.bin/top/Makefile