1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

restore: use our howmany() instead of reinventing the macro.

This commit is contained in:
Pedro F. Giffuni 2016-04-30 20:05:23 +00:00
parent fbcfcbbc5b
commit cac8854eb6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298862

View File

@ -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];