diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c index 05d1a5806a14..6f4c02e403a0 100644 --- a/sbin/restore/interactive.c +++ b/sbin/restore/interactive.c @@ -55,8 +55,6 @@ __FBSDID("$FreeBSD$"); #include "restore.h" #include "extern.h" -#define round(a, b) (((a) + (b) - 1) / (b) * (b)) - /* * Things to handle interruptions. */ @@ -671,7 +669,7 @@ formatf(struct afile *list, int nentry) columns = 81 / width; if (columns == 0) columns = 1; - lines = (nentry + columns - 1) / columns; + lines = howmany(nentry, columns); for (i = 0; i < lines; i++) { for (j = 0; j < columns; j++) { fp = &list[j * lines + i];