diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-30 20:05:23 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-30 20:05:23 +0000 |
commit | 44fbeec2fc42b07c2ef06b97e3e9803f8381adf2 (patch) | |
tree | d8c63e31c98dc24e323f57714ba910383aed7b33 | |
parent | 0fa2691ba864bf22d56e8177a7357d545d869066 (diff) | |
download | FreeBSD-src-44fbeec2fc42b07c2ef06b97e3e9803f8381adf2.zip FreeBSD-src-44fbeec2fc42b07c2ef06b97e3e9803f8381adf2.tar.gz |
restore: use our howmany() instead of reinventing the macro.
-rw-r--r-- | sbin/restore/interactive.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c index 05d1a58..6f4c02e 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]; |