]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
Replace ROUND_UP by DIV_ROUND_UP and use it everywhere.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index 30b03c69724465a925f7634f8e92c04caa84f58b..25082834eb0160de013dd11639f3354160ee261b 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -238,7 +238,7 @@ static int num_slices(long unsigned bytes, int mps, int rs)
 
        assert(m > 0);
        assert(rs > 0);
-       ret = (bytes + m - 1) / m;
+       ret = DIV_ROUND_UP(bytes, m);
        if (ret + rs > 255)
                return -E_BAD_CT;
        return ret;