]> git.tuebingen.mpg.de Git - paraslash.git/commit
vss: Cleanup num_slices().
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Aug 2010 14:45:41 +0000 (16:45 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 Oct 2010 11:06:56 +0000 (12:06 +0100)
commit5ec0e807014e7e88d6e5e281fd51a391ad697ce1
treeb0d887d720e57387170947a25eac22e37a04be7a
parent2b245d8ac15316229e688ccb6a5993cdbf553d78
vss: Cleanup num_slices().

This makes num_slices() take ints rather than uint8_t arguments which
avoids nasty integer overflows and allows to drop the result parameter
since the result is now contained in the return value.

Moreover, num_slices() now takes the number of redundant slices as
an additional argument, so that this value has to be comuted only
once in the caller.
vss.c