=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/utils.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/top/utils.c 2018/09/22 16:50:35 1.28 --- src/usr.bin/top/utils.c 2018/09/22 17:10:28 1.29 *************** *** 1,4 **** ! /* $OpenBSD: utils.c,v 1.28 2018/09/22 16:50:35 millert Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: utils.c,v 1.29 2018/09/22 17:10:28 millert Exp $ */ /* * Top users/processes display for Unix *************** *** 99,120 **** */ (void)snprintf(buffer, sizeof(buffer), "%6u", uid); return (buffer); - } - - /* - * digits(val) - return number of decimal digits in val. Only works for - * positive numbers. If val <= 0 then digits(val) == 0. - */ - int - digits(int val) - { - int cnt = 0; - - while (val > 0) { - cnt++; - val /= 10; - } - return (cnt); } /* --- 99,104 ----